Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent 00c3041bcc
commit 14b1eb042e

@ -10131,7 +10131,7 @@ v 0.1.3-beta1 - 2006-11-29
* [r585881] rawconverter/batchdialog.cpp, * [r585881] rawconverter/batchdialog.cpp,
rawconverter/savesettingswidget.cpp, rawconverter/savesettingswidget.cpp,
rawconverter/singledialog.cpp: rawconverter/singledialog.cpp:
kipi-plugins from trunk : Raw Converter : using KIO::renameDlg kipi-plugins from trunk : Raw Converter : using TDEIO::renameDlg
instead KFileDialog. instead KFileDialog.
2006-09-15 13:50 cgilles 2006-09-15 13:50 cgilles
@ -11698,7 +11698,7 @@ v0.1.0-rc2 - Last Changed Rev: 538177 - 2006-05-03
trunk/extragear/libs/kipi-plugins/htmlexport/theme.cpp, trunk/extragear/libs/kipi-plugins/htmlexport/theme.cpp,
trunk/extragear/libs/kipi-plugins/htmlexport/theme.h, trunk/extragear/libs/kipi-plugins/htmlexport/theme.h,
trunk/extragear/libs/kipi-plugins/htmlexport/wizard.cpp: Use trunk/extragear/libs/kipi-plugins/htmlexport/wizard.cpp: Use
KConfigXT to store settings of the htmlexport plugin. TDEConfigXT to store settings of the htmlexport plugin.
2006-04-23 15:28 blackie 2006-04-23 15:28 blackie
@ -12451,7 +12451,7 @@ v0.1.0-rc1 2005-02-08
* trunk/extragear/libs/kipi-plugins/cdarchiving/cdarchiving.cpp, * trunk/extragear/libs/kipi-plugins/cdarchiving/cdarchiving.cpp,
trunk/extragear/libs/kipi-plugins/cdarchiving/cdarchiving.h: - trunk/extragear/libs/kipi-plugins/cdarchiving/cdarchiving.h: -
Create KConfig objects on the stack. - No need to keep a pointer Create TDEConfig objects on the stack. - No need to keep a pointer
on it in the object. on it in the object.
2005-09-03 15:51 gateau 2005-09-03 15:51 gateau
@ -13169,7 +13169,7 @@ v0.1.0-beta2 2005-02-08
* imagesgallery/: imagesgallery.cpp, imagesgallery.h: - Do not * imagesgallery/: imagesgallery.cpp, imagesgallery.h: - Do not
append a file extension if the file already ends with that append a file extension if the file already ends with that
extension. - Use a locally declared KConfig object whenever it extension. - Use a locally declared TDEConfig object whenever it
is short lived, i.e. deleted at the end of the function. - "if is short lived, i.e. deleted at the end of the function. - "if
(object) delete object;" is not necessary if the object is (object) delete object;" is not necessary if the object is
already initialized properly. already initialized properly.
@ -14865,7 +14865,7 @@ v0.1.0-beta1 2004-09-06
// PENDING (Gilles) : Using kipirc file! // PENDING (Gilles) : Using kipirc file!
// Read File Filter settings in digikamrc file. // Read File Filter settings in digikamrc file.
m_config = new KConfig("digikamrc"); m_config = new TDEConfig("digikamrc");
m_config->setGroup("Album Settings"); m_config->setGroup("Album Settings");
QString Temp = m_config->readEntry("File Filter", "*.jpg QString Temp = m_config->readEntry("File Filter", "*.jpg
*.jpeg *.tif *.tiff *.gif *.png *.bmp"); *.jpeg *.tif *.tiff *.gif *.png *.bmp");

@ -10257,7 +10257,7 @@ v 0.1.3-beta1 - 2006-11-29
* [r585881] rawconverter/batchdialog.cpp, * [r585881] rawconverter/batchdialog.cpp,
rawconverter/savesettingswidget.cpp, rawconverter/savesettingswidget.cpp,
rawconverter/singledialog.cpp: rawconverter/singledialog.cpp:
kipi-plugins from trunk : Raw Converter : using KIO::renameDlg kipi-plugins from trunk : Raw Converter : using TDEIO::renameDlg
instead KFileDialog. instead KFileDialog.
2006-09-15 13:50 cgilles 2006-09-15 13:50 cgilles
@ -11824,7 +11824,7 @@ v0.1.0-rc2 - Last Changed Rev: 538177 - 2006-05-03
trunk/extragear/libs/kipi-plugins/htmlexport/theme.cpp, trunk/extragear/libs/kipi-plugins/htmlexport/theme.cpp,
trunk/extragear/libs/kipi-plugins/htmlexport/theme.h, trunk/extragear/libs/kipi-plugins/htmlexport/theme.h,
trunk/extragear/libs/kipi-plugins/htmlexport/wizard.cpp: Use trunk/extragear/libs/kipi-plugins/htmlexport/wizard.cpp: Use
KConfigXT to store settings of the htmlexport plugin. TDEConfigXT to store settings of the htmlexport plugin.
2006-04-23 15:28 blackie 2006-04-23 15:28 blackie
@ -12577,7 +12577,7 @@ v0.1.0-rc1 2005-02-08
* trunk/extragear/libs/kipi-plugins/cdarchiving/cdarchiving.cpp, * trunk/extragear/libs/kipi-plugins/cdarchiving/cdarchiving.cpp,
trunk/extragear/libs/kipi-plugins/cdarchiving/cdarchiving.h: - trunk/extragear/libs/kipi-plugins/cdarchiving/cdarchiving.h: -
Create KConfig objects on the stack. - No need to keep a pointer Create TDEConfig objects on the stack. - No need to keep a pointer
on it in the object. on it in the object.
2005-09-03 15:51 gateau 2005-09-03 15:51 gateau
@ -13295,7 +13295,7 @@ v0.1.0-beta2 2005-02-08
* imagesgallery/: imagesgallery.cpp, imagesgallery.h: - Do not * imagesgallery/: imagesgallery.cpp, imagesgallery.h: - Do not
append a file extension if the file already ends with that append a file extension if the file already ends with that
extension. - Use a locally declared KConfig object whenever it extension. - Use a locally declared TDEConfig object whenever it
is short lived, i.e. deleted at the end of the function. - "if is short lived, i.e. deleted at the end of the function. - "if
(object) delete object;" is not necessary if the object is (object) delete object;" is not necessary if the object is
already initialized properly. already initialized properly.
@ -14991,7 +14991,7 @@ v0.1.0-beta1 2004-09-06
// PENDING (Gilles) : Using kipirc file! // PENDING (Gilles) : Using kipirc file!
// Read File Filter settings in digikamrc file. // Read File Filter settings in digikamrc file.
m_config = new KConfig("digikamrc"); m_config = new TDEConfig("digikamrc");
m_config->setGroup("Album Settings"); m_config->setGroup("Album Settings");
QString Temp = m_config->readEntry("File Filter", "*.jpg QString Temp = m_config->readEntry("File Filter", "*.jpg
*.jpeg *.tif *.tiff *.gif *.png *.bmp"); *.jpeg *.tif *.tiff *.gif *.png *.bmp");

@ -147,7 +147,7 @@ void AcquireImageDialog::readSettings(void)
{ {
// Read all settings from configuration file. // Read all settings from configuration file.
m_config = new KConfig("kipirc"); m_config = new TDEConfig("kipirc");
m_config->setGroup("AcquireImages Settings"); m_config->setGroup("AcquireImages Settings");
m_FileName->setText(m_config->readPathEntry("DefaultImageFileName", i18n("image"))); m_FileName->setText(m_config->readPathEntry("DefaultImageFileName", i18n("image")));
m_imageCompression->setValue(m_config->readNumEntry("ImageCompression", 75)); m_imageCompression->setValue(m_config->readNumEntry("ImageCompression", 75));
@ -164,7 +164,7 @@ void AcquireImageDialog::writeSettings(void)
{ {
// Write all settings in configuration file. // Write all settings in configuration file.
m_config = new KConfig("kipirc"); m_config = new TDEConfig("kipirc");
m_config->setGroup("AcquireImages Settings"); m_config->setGroup("AcquireImages Settings");
m_config->writePathEntry("DefaultImageFileName", m_FileName->text()); m_config->writePathEntry("DefaultImageFileName", m_FileName->text());
m_config->writeEntry("ImageCompression", m_imageCompression->value()); m_config->writeEntry("ImageCompression", m_imageCompression->value());
@ -428,14 +428,14 @@ void AcquireImageDialog::slotOk()
TQString ext = extension(imageFormat); TQString ext = extension(imageFormat);
url.setFileName(fileName + ext); url.setFileName(fileName + ext);
if (KIO::NetAccess::exists(url, false NETACCESS_WIDGET)) if (TDEIO::NetAccess::exists(url, false NETACCESS_WIDGET))
{ {
for (int idx = 1; idx < 100 ; ++idx) for (int idx = 1; idx < 100 ; ++idx)
{ {
url.setFileName(TQString("%1_%2%3").arg(fileName).arg(idx).arg(ext)); url.setFileName(TQString("%1_%2%3").arg(fileName).arg(idx).arg(ext));
kdDebug(51001) << "File already exist. Try to fixed target Url to: " << url.prettyURL() << endl; kdDebug(51001) << "File already exist. Try to fixed target Url to: " << url.prettyURL() << endl;
if (!KIO::NetAccess::exists(url, false NETACCESS_WIDGET)) if (!TDEIO::NetAccess::exists(url, false NETACCESS_WIDGET))
break; break;
} }
} }
@ -478,7 +478,7 @@ void AcquireImageDialog::slotOk()
// Upload the image if necessary // Upload the image if necessary
if ( !url.isLocalFile()) if ( !url.isLocalFile())
{ {
if (!KIO::NetAccess::upload(imagePath, url NETACCESS_WIDGET)) if (!TDEIO::NetAccess::upload(imagePath, url NETACCESS_WIDGET))
{ {
KMessageBox::error(this, i18n("Could not upload image to \"%1\".").arg(url.prettyURL())); KMessageBox::error(this, i18n("Could not upload image to \"%1\".").arg(url.prettyURL()));
return; return;

@ -54,7 +54,7 @@ class TQFrame;
class TQPushButton; class TQPushButton;
class KListBox; class KListBox;
class KConfig; class TDEConfig;
class KIntNumInput; class KIntNumInput;
class KSqueezedTextLabel; class KSqueezedTextLabel;
@ -86,7 +86,7 @@ private:
TQPushButton *m_addNewAlbumButton; TQPushButton *m_addNewAlbumButton;
TQPushButton *m_helpButton; TQPushButton *m_helpButton;
KConfig *m_config; TDEConfig *m_config;
TQString m_newDir; TQString m_newDir;
TQString m_ImagesFilesSort; TQString m_ImagesFilesSort;

@ -130,7 +130,7 @@ ScreenGrabDialog::ScreenGrabDialog( KIPI::Interface* interface, TQWidget *parent
// Read all settings from configuration file. // Read all settings from configuration file.
m_config = new KConfig("kipirc"); m_config = new TDEConfig("kipirc");
m_config->setGroup("ScreenshotImages Settings"); m_config->setGroup("ScreenshotImages Settings");
if (m_config->readEntry("GrabDesktop", "true") == "true") if (m_config->readEntry("GrabDesktop", "true") == "true")
@ -181,7 +181,7 @@ void ScreenGrabDialog::slotClose( void )
{ {
// Write all settings in configuration file. // Write all settings in configuration file.
m_config = new KConfig("kipirc"); m_config = new TDEConfig("kipirc");
m_config->setGroup("ScreenshotImages Settings"); m_config->setGroup("ScreenshotImages Settings");
m_config->writeEntry("GrabDesktop", m_desktopCB->isChecked()); m_config->writeEntry("GrabDesktop", m_desktopCB->isChecked());
m_config->writeEntry("HideHostWin", m_hideCB->isChecked()); m_config->writeEntry("HideHostWin", m_hideCB->isChecked());

@ -52,7 +52,7 @@ class TQWidget;
class TQCheckBox; class TQCheckBox;
class TQPushButton; class TQPushButton;
class KConfig; class TDEConfig;
class KIntNumInput; class KIntNumInput;
namespace KIPIAcquireImagesPlugin namespace KIPIAcquireImagesPlugin
@ -98,7 +98,7 @@ private:
TQImage m_screenshotImage; TQImage m_screenshotImage;
KConfig *m_config; TDEConfig *m_config;
TQWidget *m_grabber; TQWidget *m_grabber;

@ -327,7 +327,7 @@ void BatchProcessImagesDialog::slotImageSelected( TQListViewItem * item )
KURL url(IdemIndexed); KURL url(IdemIndexed);
KIO::PreviewJob* m_thumbJob = KIO::filePreview( url, m_imageLabel->height() ); TDEIO::PreviewJob* m_thumbJob = TDEIO::filePreview( url, m_imageLabel->height() );
connect(m_thumbJob, TQT_SIGNAL(gotPreview(const KFileItem*, const TQPixmap&)), connect(m_thumbJob, TQT_SIGNAL(gotPreview(const KFileItem*, const TQPixmap&)),
this, TQT_SLOT(slotGotPreview(const KFileItem*, const TQPixmap&))); this, TQT_SLOT(slotGotPreview(const KFileItem*, const TQPixmap&)));
@ -476,9 +476,9 @@ bool BatchProcessImagesDialog::startProcess(void)
KURL desturl(targetAlbum + "/" + item->nameDest()); KURL desturl(targetAlbum + "/" + item->nameDest());
#if TDE_VERSION >= 0x30200 #if TDE_VERSION >= 0x30200
if ( KIO::NetAccess::exists( desturl, false, TQT_TQWIDGET(kapp->activeWindow()) ) == true ) if ( TDEIO::NetAccess::exists( desturl, false, TQT_TQWIDGET(kapp->activeWindow()) ) == true )
#else #else
if ( KIO::NetAccess::exists( desturl ) == true ) if ( TDEIO::NetAccess::exists( desturl ) == true )
#endif #endif
{ {
switch (overwriteMode()) switch (overwriteMode())
@ -715,9 +715,9 @@ void BatchProcessImagesDialog::slotProcessDone(TDEProcess* proc)
KURL deleteImage(item->pathSrc()); KURL deleteImage(item->pathSrc());
#if TDE_VERSION >= 0x30200 #if TDE_VERSION >= 0x30200
if ( KIO::NetAccess::del( deleteImage, TQT_TQWIDGET(kapp->activeWindow()) ) == false ) if ( TDEIO::NetAccess::del( deleteImage, TQT_TQWIDGET(kapp->activeWindow()) ) == false )
#else #else
if ( KIO::NetAccess::del( deleteImage ) == false ) if ( TDEIO::NetAccess::del( deleteImage ) == false )
#endif #endif
{ {
item->changeResult(i18n("Warning:")); item->changeResult(i18n("Warning:"));
@ -868,9 +868,9 @@ void BatchProcessImagesDialog::slotPreviewProcessDone(TDEProcess* proc)
KURL deletePreviewImage(m_tmpFolder + "/" + TQString::number(getpid()) + "preview.PNG"); KURL deletePreviewImage(m_tmpFolder + "/" + TQString::number(getpid()) + "preview.PNG");
#if TDE_VERSION >= 0x30200 #if TDE_VERSION >= 0x30200
KIO::NetAccess::del( deletePreviewImage, TQT_TQWIDGET(kapp->activeWindow()) ); TDEIO::NetAccess::del( deletePreviewImage, TQT_TQWIDGET(kapp->activeWindow()) );
#else #else
KIO::NetAccess::del( deletePreviewImage ); TDEIO::NetAccess::del( deletePreviewImage );
#endif #endif
} }
else else
@ -1029,11 +1029,11 @@ void BatchProcessImagesDialog::processAborted(bool removeFlag)
deleteImage.addPath(item->nameDest()); deleteImage.addPath(item->nameDest());
#if TDE_VERSION >= 0x30200 #if TDE_VERSION >= 0x30200
if ( KIO::NetAccess::exists( deleteImage, false, TQT_TQWIDGET(kapp->activeWindow()) ) == true ) if ( TDEIO::NetAccess::exists( deleteImage, false, TQT_TQWIDGET(kapp->activeWindow()) ) == true )
KIO::NetAccess::del( deleteImage, TQT_TQWIDGET(kapp->activeWindow()) ); TDEIO::NetAccess::del( deleteImage, TQT_TQWIDGET(kapp->activeWindow()) );
#else #else
if ( KIO::NetAccess::exists( deleteImage ) == true ) if ( TDEIO::NetAccess::exists( deleteImage ) == true )
KIO::NetAccess::del( deleteImage ); TDEIO::NetAccess::del( deleteImage );
#endif #endif
} }
@ -1067,9 +1067,9 @@ TQString BatchProcessImagesDialog::RenameTargetImageFile(TQFileInfo *fi)
} }
while ( Enumerator < 100 && while ( Enumerator < 100 &&
#if TDE_VERSION >= 0x30200 #if TDE_VERSION >= 0x30200
KIO::NetAccess::exists( NewDestUrl, true, TQT_TQWIDGET(kapp->activeWindow()) ) TDEIO::NetAccess::exists( NewDestUrl, true, TQT_TQWIDGET(kapp->activeWindow()) )
#else #else
KIO::NetAccess::exists( NewDestUrl ) TDEIO::NetAccess::exists( NewDestUrl )
#endif #endif
== true ); == true );

@ -65,7 +65,7 @@ class TQListViewItem;
class TQGroupBox; class TQGroupBox;
class TDEProcess; class TDEProcess;
class KConfig; class TDEConfig;
class KProgress; class KProgress;
class KURL; class KURL;
class KURLRequester; class KURLRequester;
@ -155,7 +155,7 @@ private slots:
TQPushButton *m_remImagesButton; TQPushButton *m_remImagesButton;
TQPushButton *m_helpButton; TQPushButton *m_helpButton;
KConfig *m_config; TDEConfig *m_config;
int m_convertStatus; int m_convertStatus;
int m_progressStatus; int m_progressStatus;

@ -180,7 +180,7 @@ void BorderImagesDialog::readSettings(void)
{ {
// Read all settings from configuration file. // Read all settings from configuration file.
m_config = new KConfig("kipirc"); m_config = new TDEConfig("kipirc");
m_config->setGroup("BorderImages Settings"); m_config->setGroup("BorderImages Settings");
m_Type->setCurrentItem(m_config->readNumEntry("BorderType", 1)); // Niepce per default. m_Type->setCurrentItem(m_config->readNumEntry("BorderType", 1)); // Niepce per default.
@ -221,7 +221,7 @@ void BorderImagesDialog::saveSettings(void)
{ {
// Write all settings in configuration file. // Write all settings in configuration file.
m_config = new KConfig("kipirc"); m_config = new TDEConfig("kipirc");
m_config->setGroup("BorderImages Settings"); m_config->setGroup("BorderImages Settings");
m_config->writeEntry("BorderType", m_Type->currentItem()); m_config->writeEntry("BorderType", m_Type->currentItem());

@ -191,7 +191,7 @@ void ColorImagesDialog::readSettings(void)
{ {
// Read all settings from configuration file. // Read all settings from configuration file.
m_config = new KConfig("kipirc"); m_config = new TDEConfig("kipirc");
m_config->setGroup("ColorImages Settings"); m_config->setGroup("ColorImages Settings");
m_Type->setCurrentItem(m_config->readNumEntry("ColorType", 8)); // Normalize per default. m_Type->setCurrentItem(m_config->readNumEntry("ColorType", 8)); // Normalize per default.
@ -219,7 +219,7 @@ void ColorImagesDialog::saveSettings(void)
{ {
// Write all settings in configuration file. // Write all settings in configuration file.
m_config = new KConfig("kipirc"); m_config = new TDEConfig("kipirc");
m_config->setGroup("ColorImages Settings"); m_config->setGroup("ColorImages Settings");
m_config->writeEntry("ColorType", m_Type->currentItem()); m_config->writeEntry("ColorType", m_Type->currentItem());

@ -200,7 +200,7 @@ void ConvertImagesDialog::readSettings(void)
{ {
// Read all settings from configuration file. // Read all settings from configuration file.
m_config = new KConfig("kipirc"); m_config = new TDEConfig("kipirc");
m_config->setGroup("ConvertImages Settings"); m_config->setGroup("ConvertImages Settings");
m_Type->setCurrentItem(m_config->readNumEntry("ImagesFormat", 0)); // JPEG per default m_Type->setCurrentItem(m_config->readNumEntry("ImagesFormat", 0)); // JPEG per default
@ -227,7 +227,7 @@ void ConvertImagesDialog::saveSettings(void)
{ {
// Write all settings in configuration file. // Write all settings in configuration file.
m_config = new KConfig("kipirc"); m_config = new TDEConfig("kipirc");
m_config->setGroup("ConvertImages Settings"); m_config->setGroup("ConvertImages Settings");
m_config->writeEntry("ImagesFormat", m_Type->currentItem()); m_config->writeEntry("ImagesFormat", m_Type->currentItem());

@ -250,7 +250,7 @@ void EffectImagesDialog::slotOptionsClicked(void)
void EffectImagesDialog::readSettings(void) void EffectImagesDialog::readSettings(void)
{ {
m_config = new KConfig("kipirc"); m_config = new TDEConfig("kipirc");
m_config->setGroup("EffectImages Settings"); m_config->setGroup("EffectImages Settings");
m_Type->setCurrentItem(m_config->readNumEntry("EffectType", 3)); // Emboss per default. m_Type->setCurrentItem(m_config->readNumEntry("EffectType", 3)); // Emboss per default.
@ -291,7 +291,7 @@ void EffectImagesDialog::saveSettings(void)
{ {
// Write all settings in configuration file. // Write all settings in configuration file.
m_config = new KConfig("kipirc"); m_config = new TDEConfig("kipirc");
m_config->setGroup("EffectImages Settings"); m_config->setGroup("EffectImages Settings");
m_config->writeEntry("EffectType", m_Type->currentItem()); m_config->writeEntry("EffectType", m_Type->currentItem());

@ -209,7 +209,7 @@ void FilterImagesDialog::readSettings(void)
{ {
// Read all settings from configuration file. // Read all settings from configuration file.
m_config = new KConfig("kipirc"); m_config = new TDEConfig("kipirc");
m_config->setGroup("FilterImages Settings"); m_config->setGroup("FilterImages Settings");
m_Type->setCurrentItem(m_config->readNumEntry("FilterType", 7)); // Sharpen per default m_Type->setCurrentItem(m_config->readNumEntry("FilterType", 7)); // Sharpen per default
@ -244,7 +244,7 @@ void FilterImagesDialog::saveSettings(void)
{ {
// Write all settings in configuration file. // Write all settings in configuration file.
m_config = new KConfig("kipirc"); m_config = new TDEConfig("kipirc");
m_config->setGroup("FilterImages Settings"); m_config->setGroup("FilterImages Settings");
m_config->writeEntry("FilterType", m_Type->currentItem()); m_config->writeEntry("FilterType", m_Type->currentItem());

@ -309,9 +309,9 @@ void PixmapView::PreviewProcessDone(TDEProcess* proc)
KURL deletePreviewImage( m_previewFileName ); KURL deletePreviewImage( m_previewFileName );
#if TDE_VERSION >= 0x30200 #if TDE_VERSION >= 0x30200
KIO::NetAccess::del( deletePreviewImage, TQT_TQWIDGET(kapp->activeWindow()) ); TDEIO::NetAccess::del( deletePreviewImage, TQT_TQWIDGET(kapp->activeWindow()) );
#else #else
KIO::NetAccess::del( deletePreviewImage ); TDEIO::NetAccess::del( deletePreviewImage );
#endif #endif
} }
else else

@ -129,7 +129,7 @@ void RecompressImagesDialog::readSettings(void)
{ {
// Read all settings from configuration file. // Read all settings from configuration file.
m_config = new KConfig("kipirc"); m_config = new TDEConfig("kipirc");
m_config->setGroup("RecompressImages Settings"); m_config->setGroup("RecompressImages Settings");
m_JPEGCompression = m_config->readNumEntry("JPEGCompression", 75); m_JPEGCompression = m_config->readNumEntry("JPEGCompression", 75);
@ -157,7 +157,7 @@ void RecompressImagesDialog::saveSettings(void)
{ {
// Write all settings in configuration file. // Write all settings in configuration file.
m_config = new KConfig("kipirc"); m_config = new TDEConfig("kipirc");
m_config->setGroup("RecompressImages Settings"); m_config->setGroup("RecompressImages Settings");
m_config->writeEntry("JPEGCompression", m_JPEGCompression); m_config->writeEntry("JPEGCompression", m_JPEGCompression);

@ -162,7 +162,7 @@ RenameImagesWidget::~RenameImagesWidget()
void RenameImagesWidget::readSettings() void RenameImagesWidget::readSettings()
{ {
KConfig config("kipirc"); TDEConfig config("kipirc");
config.setGroup("RenameImages Settings"); config.setGroup("RenameImages Settings");
m_prefixEdit->setText(config.readEntry("PrefixString", "")); m_prefixEdit->setText(config.readEntry("PrefixString", ""));
@ -178,7 +178,7 @@ void RenameImagesWidget::readSettings()
void RenameImagesWidget::saveSettings() void RenameImagesWidget::saveSettings()
{ {
KConfig config("kipirc"); TDEConfig config("kipirc");
config.setGroup("RenameImages Settings"); config.setGroup("RenameImages Settings");
config.writeEntry("PrefixString", m_prefixEdit->text()); config.writeEntry("PrefixString", m_prefixEdit->text());
@ -218,7 +218,7 @@ void RenameImagesWidget::slotImageSelected(TQListViewItem* item)
m_pixLabel->clear(); m_pixLabel->clear();
BatchProcessImagesItem* it = static_cast<BatchProcessImagesItem*>(item); BatchProcessImagesItem* it = static_cast<BatchProcessImagesItem*>(item);
KIO::PreviewJob* thumbJob = KIO::filePreview(KURL(it->pathSrc()), TDEIO::PreviewJob* thumbJob = TDEIO::filePreview(KURL(it->pathSrc()),
m_pixLabel->height() ); m_pixLabel->height() );
connect(thumbJob, TQT_SIGNAL(gotPreview(const KFileItem*, const TQPixmap&)), connect(thumbJob, TQT_SIGNAL(gotPreview(const KFileItem*, const TQPixmap&)),
@ -439,37 +439,37 @@ void RenameImagesWidget::slotNext()
break; break;
} }
KIO::RenameDlg dlg(this, i18n("Rename File"), src.path(), dst.path(), TDEIO::RenameDlg dlg(this, i18n("Rename File"), src.path(), dst.path(),
KIO::RenameDlg_Mode(KIO::M_MULTI | TDEIO::RenameDlg_Mode(TDEIO::M_MULTI |
KIO::M_OVERWRITE | TDEIO::M_OVERWRITE |
KIO::M_SKIP)); TDEIO::M_SKIP));
int result = dlg.exec(); int result = dlg.exec();
dst = dlg.newDestURL(); dst = dlg.newDestURL();
switch (result) switch (result)
{ {
case KIO::R_CANCEL: case TDEIO::R_CANCEL:
{ {
slotAbort(); slotAbort();
return; return;
} }
case KIO::R_SKIP: case TDEIO::R_SKIP:
{ {
skip = true; skip = true;
break; break;
} }
case KIO::R_AUTO_SKIP: case TDEIO::R_AUTO_SKIP:
{ {
m_autoSkip = true; m_autoSkip = true;
skip = true; skip = true;
break; break;
} }
case KIO::R_OVERWRITE: case TDEIO::R_OVERWRITE:
{ {
overwrite = true; overwrite = true;
break; break;
} }
case KIO::R_OVERWRITE_ALL: case TDEIO::R_OVERWRITE_ALL:
{ {
m_overwriteAll = true; m_overwriteAll = true;
overwrite = true; overwrite = true;

@ -216,7 +216,7 @@ void ResizeImagesDialog::readSettings(void)
TQColor *ColorWhite = new TQColor( 255, 255, 255 ); TQColor *ColorWhite = new TQColor( 255, 255, 255 );
TQColor *ColorBlack = new TQColor( 0, 0, 0 ); TQColor *ColorBlack = new TQColor( 0, 0, 0 );
m_config = new KConfig("kipirc"); m_config = new TDEConfig("kipirc");
m_config->setGroup("ResizeImages Settings"); m_config->setGroup("ResizeImages Settings");
m_Type->setCurrentItem(m_config->readNumEntry("ResiseType", 3)); // Prepare to print per default. m_Type->setCurrentItem(m_config->readNumEntry("ResiseType", 3)); // Prepare to print per default.
@ -262,7 +262,7 @@ void ResizeImagesDialog::saveSettings(void)
{ {
// Write all settings in configuration file. // Write all settings in configuration file.
m_config = new KConfig("kipirc"); m_config = new TDEConfig("kipirc");
m_config->setGroup("ResizeImages Settings"); m_config->setGroup("ResizeImages Settings");
m_config->writeEntry("ResiseType", m_Type->currentItem()); m_config->writeEntry("ResiseType", m_Type->currentItem());
m_config->writeEntry("Size", m_size); m_config->writeEntry("Size", m_size);

@ -135,8 +135,8 @@ void MonthWidget::setImage( const KURL &url )
KURL::List urls; KURL::List urls;
urls << url; urls << url;
KIO::PreviewJob* thumbJob_ = TDEIO::PreviewJob* thumbJob_ =
KIO::filePreview( urls,64); TDEIO::filePreview( urls,64);
connect(thumbJob_, TQT_SIGNAL(gotPreview(const KFileItem*, const TQPixmap&)), connect(thumbJob_, TQT_SIGNAL(gotPreview(const KFileItem*, const TQPixmap&)),
TQT_SLOT(slotGotThumbnaiL(const KFileItem*, const TQPixmap&))); TQT_SLOT(slotGotThumbnaiL(const KFileItem*, const TQPixmap&)));
} }

@ -102,7 +102,7 @@ CDArchiving::~CDArchiving()
void CDArchiving::writeSettings(void) void CDArchiving::writeSettings(void)
{ {
KConfig config("kipirc"); TDEConfig config("kipirc");
config.setGroup("CDArchiving Settings"); config.setGroup("CDArchiving Settings");
// Albums selection dialogbox setup tab // Albums selection dialogbox setup tab
@ -149,7 +149,7 @@ void CDArchiving::writeSettings(void)
void CDArchiving::readSettings(void) void CDArchiving::readSettings(void)
{ {
KConfig config("kipirc"); TDEConfig config("kipirc");
config.setGroup("CDArchiving Settings"); config.setGroup("CDArchiving Settings");
// Albums selection dialogbox setup tab // Albums selection dialogbox setup tab
@ -521,7 +521,7 @@ bool CDArchiving::buildHTMLInterface (void)
dir = dir + "gohome.png"; dir = dir + "gohome.png";
KURL srcURL(dir); KURL srcURL(dir);
KURL destURL( MainTPath + "/gohome.png"); KURL destURL( MainTPath + "/gohome.png");
KIO::file_copy(srcURL, destURL, -1, true, false, false); TDEIO::file_copy(srcURL, destURL, -1, true, false, false);
// Adding up icon // Adding up icon
TDEGlobal::dirs()->addResourceType("kipi_data", TDEGlobal::dirs()->kde_default("data") + "kipi"); TDEGlobal::dirs()->addResourceType("kipi_data", TDEGlobal::dirs()->kde_default("data") + "kipi");
@ -529,7 +529,7 @@ bool CDArchiving::buildHTMLInterface (void)
dir = dir + "up.png"; dir = dir + "up.png";
srcURL = dir; srcURL = dir;
destURL = MainTPath + TQString::fromLatin1("/up.png"); destURL = MainTPath + TQString::fromLatin1("/up.png");
KIO::file_copy(srcURL, destURL, -1, true, false, false); TDEIO::file_copy(srcURL, destURL, -1, true, false, false);
//clear the temporary list for unique names //clear the temporary list for unique names
m_collection_name_list.clear(); m_collection_name_list.clear();
@ -953,7 +953,7 @@ void CDArchiving::createBody(TQTextStream& stream,
KURL srcURL(dir); KURL srcURL(dir);
KURL destURL(imgGalleryDir + TQString::fromLatin1("/thumbs/valid-html401.png")); KURL destURL(imgGalleryDir + TQString::fromLatin1("/thumbs/valid-html401.png"));
KIO::file_copy(srcURL, destURL, -1, true, false, false); TDEIO::file_copy(srcURL, destURL, -1, true, false, false);
stream << "<p>" << endl; stream << "<p>" << endl;
Temp = i18n("Valid HTML 4.01."); Temp = i18n("Valid HTML 4.01.");
@ -993,7 +993,7 @@ void CDArchiving::createBodyMainPage(TQTextStream& stream, KURL& url)
KURL srcURL(dir); KURL srcURL(dir);
KURL destURL(url.directory() + TQString::fromLatin1("/valid-html401.png")); KURL destURL(url.directory() + TQString::fromLatin1("/valid-html401.png"));
KIO::file_copy(srcURL, destURL, -1, true, false, false); TDEIO::file_copy(srcURL, destURL, -1, true, false, false);
stream << "<p>" << endl; stream << "<p>" << endl;
Temp = i18n("Valid HTML 4.01."); Temp = i18n("Valid HTML 4.01.");
@ -1768,7 +1768,7 @@ void CDArchiving::removeTmpFiles(void)
///////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////////////
// This code can be multithreaded (in opposite to KIO::netaccess::delete(). // This code can be multithreaded (in opposite to TDEIO::netaccess::delete().
bool CDArchiving::DeleteDir(TQString dirname) bool CDArchiving::DeleteDir(TQString dirname)
{ {
@ -1795,7 +1795,7 @@ bool CDArchiving::DeleteDir(TQString dirname)
///////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////////////
// This code can be multithreaded (in opposite to KIO::netaccess::delete(). // This code can be multithreaded (in opposite to TDEIO::netaccess::delete().
bool CDArchiving::deldir(TQString dirname) bool CDArchiving::deldir(TQString dirname)
{ {

@ -82,7 +82,7 @@
namespace KIPICDArchivingPlugin namespace KIPICDArchivingPlugin
{ {
KIO::filesize_t TargetMediaSize; TDEIO::filesize_t TargetMediaSize;
CDArchivingDialog::CDArchivingDialog( KIPI::Interface* interface, TQWidget *parent) CDArchivingDialog::CDArchivingDialog( KIPI::Interface* interface, TQWidget *parent)
: KDialogBase( IconList, i18n("Configure Archive to CD"), Help|Ok|Cancel, Ok, : KDialogBase( IconList, i18n("Configure Archive to CD"), Help|Ok|Cancel, Ok,
@ -621,8 +621,8 @@ void CDArchivingDialog::ShowMediaCapacity(void)
Color = "<font color=\"red\">"; Color = "<font color=\"red\">";
m_mediaSize->setText( i18n("Total size: ") + Color + m_mediaSize->setText( i18n("Total size: ") + Color +
i18n("<b>%1</b></font> / <b>%2</b>").arg(KIO::convertSizeFromKB(TargetMediaSize)) i18n("<b>%1</b></font> / <b>%2</b>").arg(TDEIO::convertSizeFromKB(TargetMediaSize))
.arg(KIO::convertSizeFromKB (MaxMediaSize)) ); .arg(TDEIO::convertSizeFromKB (MaxMediaSize)) );
} }
void CDArchivingDialog::slotOk() void CDArchivingDialog::slotOk()

@ -170,7 +170,7 @@ private:
KColorButton *m_bordersImagesColor; KColorButton *m_bordersImagesColor;
KColorButton *m_foregroundColor; KColorButton *m_foregroundColor;
KIO::filesize_t MaxMediaSize; TDEIO::filesize_t MaxMediaSize;
KIPI::ImageCollectionSelector *m_imageCollectionSelector; KIPI::ImageCollectionSelector *m_imageCollectionSelector;

@ -307,7 +307,7 @@ void DisplayCompare::slotDelete( void )
itemTmp = (FindDuplicateItem*)item->nextSibling(); itemTmp = (FindDuplicateItem*)item->nextSibling();
KURL deleteImage(item->fullpath()); KURL deleteImage(item->fullpath());
if ( KIO::NetAccess::del(deleteImage) == false ) if ( TDEIO::NetAccess::del(deleteImage) == false )
KMessageBox::error(this, i18n("Cannot remove duplicate file:\n%1").arg(item->fullpath())); KMessageBox::error(this, i18n("Cannot remove duplicate file:\n%1").arg(item->fullpath()));
else else
m_interface->delImage( deleteImage ); m_interface->delImage( deleteImage );
@ -328,7 +328,7 @@ void DisplayCompare::slotDelete( void )
{ {
KURL deleteImage(item->fullpath()); KURL deleteImage(item->fullpath());
if ( KIO::NetAccess::del(deleteImage) == false ) if ( TDEIO::NetAccess::del(deleteImage) == false )
KMessageBox::error(this, i18n("Cannot remove original file:\n%1").arg(item->fullpath())); KMessageBox::error(this, i18n("Cannot remove original file:\n%1").arg(item->fullpath()));
item->setOn( false ); item->setOn( false );
@ -365,7 +365,7 @@ void DisplayCompare::slotDisplayLeft(TQListViewItem * item)
TQString IdemIndexed = "file:" + pitem->fullpath(); TQString IdemIndexed = "file:" + pitem->fullpath();
KURL url(IdemIndexed); KURL url(IdemIndexed);
KIO::PreviewJob* thumbJob1 = KIO::filePreview( url, preview1->height() ); TDEIO::PreviewJob* thumbJob1 = TDEIO::filePreview( url, preview1->height() );
connect(thumbJob1, TQT_SIGNAL(gotPreview(const KFileItem*, const TQPixmap&)), connect(thumbJob1, TQT_SIGNAL(gotPreview(const KFileItem*, const TQPixmap&)),
TQT_SLOT(slotGotPreview1(const KFileItem*, const TQPixmap&))); TQT_SLOT(slotGotPreview1(const KFileItem*, const TQPixmap&)));
@ -442,7 +442,7 @@ void DisplayCompare::slotDisplayRight(TQListViewItem * item)
TQString IdemIndexed = "file:" + pitem->fullpath(); TQString IdemIndexed = "file:" + pitem->fullpath();
KURL url(IdemIndexed); KURL url(IdemIndexed);
KIO::PreviewJob* thumbJob2 = KIO::filePreview( url, preview2->height() ); TDEIO::PreviewJob* thumbJob2 = TDEIO::filePreview( url, preview2->height() );
connect(thumbJob2, TQT_SIGNAL(gotPreview(const KFileItem*, const TQPixmap&)), connect(thumbJob2, TQT_SIGNAL(gotPreview(const KFileItem*, const TQPixmap&)),
TQT_SLOT(slotGotPreview2(const KFileItem*, const TQPixmap&))); TQT_SLOT(slotGotPreview2(const KFileItem*, const TQPixmap&)));

@ -97,7 +97,7 @@ FindDuplicateImages::~FindDuplicateImages()
void FindDuplicateImages::writeSettings(void) void FindDuplicateImages::writeSettings(void)
{ {
config = new KConfig("kipirc"); config = new TDEConfig("kipirc");
config->setGroup("FindDuplicateImages Settings"); config->setGroup("FindDuplicateImages Settings");
// Method dialogbox setup tab // Method dialogbox setup tab
@ -114,7 +114,7 @@ void FindDuplicateImages::writeSettings(void)
void FindDuplicateImages::readSettings(void) void FindDuplicateImages::readSettings(void)
{ {
config = new KConfig("kipirc"); config = new TDEConfig("kipirc");
config->setGroup("FindDuplicateImages Settings"); config->setGroup("FindDuplicateImages Settings");
// Method dialogbox setup tab // Method dialogbox setup tab

@ -44,7 +44,7 @@ class TQFile;
class TQCustomEvent; class TQCustomEvent;
class TQMutex; class TQMutex;
class KConfig; class TDEConfig;
namespace KIPIFindDupplicateImagesPlugin namespace KIPIFindDupplicateImagesPlugin
{ {
@ -75,7 +75,7 @@ public slots:
void slotClearAllCache(void); void slotClearAllCache(void);
protected: protected:
KConfig *config; TDEConfig *config;
TQString m_imagesFileFilter; TQString m_imagesFileFilter;
TQProgressDialog *pdCache; TQProgressDialog *pdCache;
FindDuplicateDialog *m_findDuplicateDialog; FindDuplicateDialog *m_findDuplicateDialog;

@ -130,15 +130,15 @@ void FlickrTalker::getFrob()
url.addQueryItem("api_sig", md5); url.addQueryItem("api_sig", md5);
kdDebug() << "Get frob url: " << url << endl; kdDebug() << "Get frob url: " << url << endl;
TQByteArray tmp; TQByteArray tmp;
KIO::TransferJob* job = KIO::http_post(url, tmp, false); TDEIO::TransferJob* job = TDEIO::http_post(url, tmp, false);
job->addMetaData("content-type", "Content-Type: application/x-www-form-urlencoded"); job->addMetaData("content-type", "Content-Type: application/x-www-form-urlencoded");
connect(job, TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)), connect(job, TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)),
this, TQT_SLOT(data(KIO::Job*, const TQByteArray&))); this, TQT_SLOT(data(TDEIO::Job*, const TQByteArray&)));
connect(job, TQT_SIGNAL(result(KIO::Job *)), connect(job, TQT_SIGNAL(result(TDEIO::Job *)),
this, TQT_SLOT(slotResult(KIO::Job *))); this, TQT_SLOT(slotResult(TDEIO::Job *)));
m_state = FE_GETFROB; m_state = FE_GETFROB;
m_authProgressDlg->setLabelText(i18n("Getting the Frob")); m_authProgressDlg->setLabelText(i18n("Getting the Frob"));
@ -164,15 +164,15 @@ void FlickrTalker::checkToken(const TQString& token)
url.addQueryItem("api_sig", md5); url.addQueryItem("api_sig", md5);
kdDebug() << "Check token url: " << url << endl; kdDebug() << "Check token url: " << url << endl;
TQByteArray tmp; TQByteArray tmp;
KIO::TransferJob* job = KIO::http_post(url, tmp, false); TDEIO::TransferJob* job = TDEIO::http_post(url, tmp, false);
job->addMetaData("content-type", "Content-Type: application/x-www-form-urlencoded"); job->addMetaData("content-type", "Content-Type: application/x-www-form-urlencoded");
connect(job, TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)), connect(job, TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)),
this, TQT_SLOT(data(KIO::Job*, const TQByteArray&))); this, TQT_SLOT(data(TDEIO::Job*, const TQByteArray&)));
connect(job, TQT_SIGNAL(result(KIO::Job *)), connect(job, TQT_SIGNAL(result(TDEIO::Job *)),
this, TQT_SLOT(slotResult(KIO::Job *))); this, TQT_SLOT(slotResult(TDEIO::Job *)));
m_state = FE_CHECKTOKEN; m_state = FE_CHECKTOKEN;
m_authProgressDlg->setLabelText(i18n("Checking if previous token is still valid")); m_authProgressDlg->setLabelText(i18n("Checking if previous token is still valid"));
@ -234,14 +234,14 @@ void FlickrTalker::getToken()
url.addQueryItem("api_sig", md5); url.addQueryItem("api_sig", md5);
kdDebug() << "Get token url: " << url << endl; kdDebug() << "Get token url: " << url << endl;
TQByteArray tmp; TQByteArray tmp;
KIO::TransferJob* job = KIO::http_post(url, tmp, false); TDEIO::TransferJob* job = TDEIO::http_post(url, tmp, false);
job->addMetaData("content-type", "Content-Type: application/x-www-form-urlencoded"); job->addMetaData("content-type", "Content-Type: application/x-www-form-urlencoded");
connect(job, TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)), connect(job, TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)),
this, TQT_SLOT(data(KIO::Job*, const TQByteArray&))); this, TQT_SLOT(data(TDEIO::Job*, const TQByteArray&)));
connect(job, TQT_SIGNAL(result(KIO::Job *)), connect(job, TQT_SIGNAL(result(TDEIO::Job *)),
this, TQT_SLOT(slotResult(KIO::Job *))); this, TQT_SLOT(slotResult(TDEIO::Job *)));
m_state = FE_GETTOKEN; m_state = FE_GETTOKEN;
m_job = job; m_job = job;
@ -261,14 +261,14 @@ void FlickrTalker::listPhotoSets()
url.addQueryItem("api_sig", md5); url.addQueryItem("api_sig", md5);
kdDebug() << "List photo sets url: " << url << endl; kdDebug() << "List photo sets url: " << url << endl;
TQByteArray tmp; TQByteArray tmp;
KIO::TransferJob* job = KIO::http_post(url, tmp, false); TDEIO::TransferJob* job = TDEIO::http_post(url, tmp, false);
job->addMetaData("content-type", "Content-Type: application/x-www-form-urlencoded" ); job->addMetaData("content-type", "Content-Type: application/x-www-form-urlencoded" );
connect(job, TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)), connect(job, TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)),
this, TQT_SLOT(data(KIO::Job*, const TQByteArray&))); this, TQT_SLOT(data(TDEIO::Job*, const TQByteArray&)));
connect(job, TQT_SIGNAL(result(KIO::Job *)), connect(job, TQT_SIGNAL(result(TDEIO::Job *)),
this, TQT_SLOT(slotResult(KIO::Job *))); this, TQT_SLOT(slotResult(TDEIO::Job *)));
m_state = FE_LISTPHOTOSETS; m_state = FE_LISTPHOTOSETS;
m_job = job; m_job = job;
@ -299,14 +299,14 @@ void FlickrTalker::getPhotoProperty(const TQString& method, const TQStringList&
url.addQueryItem("api_sig", md5); url.addQueryItem("api_sig", md5);
kdDebug() << "Get photo property url: " << url << endl; kdDebug() << "Get photo property url: " << url << endl;
TQByteArray tmp; TQByteArray tmp;
KIO::TransferJob* job = KIO::http_post(url, tmp, false); TDEIO::TransferJob* job = TDEIO::http_post(url, tmp, false);
job->addMetaData("content-type", "Content-Type: application/x-www-form-urlencoded" ); job->addMetaData("content-type", "Content-Type: application/x-www-form-urlencoded" );
connect(job, TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)), connect(job, TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)),
this, TQT_SLOT(data(KIO::Job*, const TQByteArray&))); this, TQT_SLOT(data(TDEIO::Job*, const TQByteArray&)));
connect(job, TQT_SIGNAL(result(KIO::Job *)), connect(job, TQT_SIGNAL(result(TDEIO::Job *)),
this, TQT_SLOT(slotResult(KIO::Job *))); this, TQT_SLOT(slotResult(TDEIO::Job *)));
m_state = FE_GETPHOTOPROPERTY; m_state = FE_GETPHOTOPROPERTY;
m_job = job; m_job = job;
@ -433,14 +433,14 @@ bool FlickrTalker::addPhoto(const TQString& photoPath, const FPhotoInfo& info,
form.finish(); form.finish();
KIO::TransferJob* job = KIO::http_post(url, form.formData(), false); TDEIO::TransferJob* job = TDEIO::http_post(url, form.formData(), false);
job->addMetaData("content-type", form.contentType()); job->addMetaData("content-type", form.contentType());
connect(job, TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)), connect(job, TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)),
this, TQT_SLOT(data(KIO::Job*, const TQByteArray&))); this, TQT_SLOT(data(TDEIO::Job*, const TQByteArray&)));
connect(job, TQT_SIGNAL(result(KIO::Job *)), connect(job, TQT_SIGNAL(result(TDEIO::Job *)),
this, TQT_SLOT(slotResult(KIO::Job *))); this, TQT_SLOT(slotResult(TDEIO::Job *)));
m_state = FE_ADDPHOTO; m_state = FE_ADDPHOTO;
m_job = job; m_job = job;
@ -471,7 +471,7 @@ void FlickrTalker::cancel()
m_authProgressDlg->hide(); m_authProgressDlg->hide();
} }
void FlickrTalker::data(KIO::Job*, const TQByteArray& data) void FlickrTalker::data(TDEIO::Job*, const TQByteArray& data)
{ {
if (data.isEmpty()) if (data.isEmpty())
return; return;
@ -547,7 +547,7 @@ void FlickrTalker::slotError(const TQString& error)
// kdDebug() << "Not handling the error now will see it later" << endl; // kdDebug() << "Not handling the error now will see it later" << endl;
} }
void FlickrTalker::slotResult(KIO::Job *job) void FlickrTalker::slotResult(TDEIO::Job *job)
{ {
m_job = 0; m_job = 0;
emit signalBusy(false); emit signalBusy(false);

@ -125,8 +125,8 @@ private slots:
void slotError(const TQString& msg); void slotError(const TQString& msg);
void slotAuthenticate(); void slotAuthenticate();
void data(KIO::Job *job, const TQByteArray& data); void data(TDEIO::Job *job, const TQByteArray& data);
void slotResult(KIO::Job *job); void slotResult(TDEIO::Job *job);
private: private:
@ -142,7 +142,7 @@ private:
TQString m_username; TQString m_username;
TQString m_userId; TQString m_userId;
KIO::Job* m_job; TDEIO::Job* m_job;
State m_state; State m_state;
}; };

@ -220,7 +220,7 @@ FlickrWindow::~FlickrWindow()
void FlickrWindow::readSettings() void FlickrWindow::readSettings()
{ {
KConfig config("kipirc"); TDEConfig config("kipirc");
config.setGroup("FlickrExport Settings"); config.setGroup("FlickrExport Settings");
m_token = config.readEntry("token"); m_token = config.readEntry("token");
@ -256,7 +256,7 @@ void FlickrWindow::readSettings()
void FlickrWindow::writeSettings() void FlickrWindow::writeSettings()
{ {
KConfig config("kipirc"); TDEConfig config("kipirc");
config.setGroup("FlickrExport Settings"); config.setGroup("FlickrExport Settings");
config.writeEntry("token", m_token); config.writeEntry("token", m_token);
config.writeEntry("Resize", m_resizeCheckBox->isChecked()); config.writeEntry("Resize", m_resizeCheckBox->isChecked());

@ -248,7 +248,7 @@ void ImagesList::slotAddImages(const KURL::List& list)
emit signalImageListChanged(imageUrls().isEmpty()); emit signalImageListChanged(imageUrls().isEmpty());
KIO::PreviewJob *thumbnailJob = KIO::filePreview(urls, ICONSIZE); TDEIO::PreviewJob *thumbnailJob = TDEIO::filePreview(urls, ICONSIZE);
connect(thumbnailJob, TQT_SIGNAL(gotPreview(const KFileItem*, const TQPixmap&)), connect(thumbnailJob, TQT_SIGNAL(gotPreview(const KFileItem*, const TQPixmap&)),
this, TQT_SLOT(slotGotThumbnail(const KFileItem*, const TQPixmap&))); this, TQT_SLOT(slotGotThumbnail(const KFileItem*, const TQPixmap&)));

@ -142,7 +142,7 @@ void Galleries::Load()
// read config // read config
KConfig config("kipirc"); TDEConfig config("kipirc");
config.setGroup("GallerySync Settings"); config.setGroup("GallerySync Settings");
TQValueList<int> gallery_ids = config.readIntListEntry("Galleries"); TQValueList<int> gallery_ids = config.readIntListEntry("Galleries");
@ -188,7 +188,7 @@ void Galleries::Remove(Gallery* pGallery)
void Galleries::Save() void Galleries::Save()
{ {
TQValueList<int> gallery_ids; TQValueList<int> gallery_ids;
KConfig config("kipirc"); TDEConfig config("kipirc");
config.deleteGroup("GallerySync Galleries"); config.deleteGroup("GallerySync Galleries");
config.setGroup("GallerySync Galleries"); config.setGroup("GallerySync Galleries");

@ -77,13 +77,13 @@ void GalleryTalker::login( const KURL& url, const TQString& name,
form.addPair("password", passwd); form.addPair("password", passwd);
form.finish(); form.finish();
KIO::TransferJob* job = KIO::http_post(m_url, form.formData(), false); TDEIO::TransferJob* job = TDEIO::http_post(m_url, form.formData(), false);
job->addMetaData("content-type", form.contentType() ); job->addMetaData("content-type", form.contentType() );
job->addMetaData("cookies", "manual"); job->addMetaData("cookies", "manual");
connect(job, TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)), connect(job, TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)),
TQT_SLOT(data(KIO::Job*, const TQByteArray&))); TQT_SLOT(data(TDEIO::Job*, const TQByteArray&)));
connect(job, TQT_SIGNAL(result(KIO::Job *)), connect(job, TQT_SIGNAL(result(TDEIO::Job *)),
TQT_SLOT(slotResult(KIO::Job *))); TQT_SLOT(slotResult(TDEIO::Job *)));
m_state = GE_LOGIN; m_state = GE_LOGIN;
m_job = job; m_job = job;
@ -103,14 +103,14 @@ void GalleryTalker::listAlbums()
form.addPair("protocol_version", "2.11"); form.addPair("protocol_version", "2.11");
form.finish(); form.finish();
KIO::TransferJob* job = KIO::http_post(m_url, form.formData(), false); TDEIO::TransferJob* job = TDEIO::http_post(m_url, form.formData(), false);
job->addMetaData("content-type", form.contentType() ); job->addMetaData("content-type", form.contentType() );
job->addMetaData("cookies", "manual"); job->addMetaData("cookies", "manual");
job->addMetaData("setcookies", m_cookie); job->addMetaData("setcookies", m_cookie);
connect(job, TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)), connect(job, TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)),
TQT_SLOT(data(KIO::Job*, const TQByteArray&))); TQT_SLOT(data(TDEIO::Job*, const TQByteArray&)));
connect(job, TQT_SIGNAL(result(KIO::Job *)), connect(job, TQT_SIGNAL(result(TDEIO::Job *)),
TQT_SLOT(slotResult(KIO::Job *))); TQT_SLOT(slotResult(TDEIO::Job *)));
m_state = GE_LISTALBUMS; m_state = GE_LISTALBUMS;
m_job = job; m_job = job;
@ -133,14 +133,14 @@ void GalleryTalker::listPhotos( const TQString& albumName )
form.addPair("set_albumName", albumName); form.addPair("set_albumName", albumName);
form.finish(); form.finish();
KIO::TransferJob* job = KIO::http_post(m_url, form.formData(), false); TDEIO::TransferJob* job = TDEIO::http_post(m_url, form.formData(), false);
job->addMetaData("content-type", form.contentType() ); job->addMetaData("content-type", form.contentType() );
job->addMetaData("cookies", "manual"); job->addMetaData("cookies", "manual");
job->addMetaData("setcookies", m_cookie); job->addMetaData("setcookies", m_cookie);
connect(job, TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)), connect(job, TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)),
TQT_SLOT(data(KIO::Job*, const TQByteArray&))); TQT_SLOT(data(TDEIO::Job*, const TQByteArray&)));
connect(job, TQT_SIGNAL(result(KIO::Job *)), connect(job, TQT_SIGNAL(result(TDEIO::Job *)),
TQT_SLOT(slotResult(KIO::Job *))); TQT_SLOT(slotResult(TDEIO::Job *)));
m_state = GE_LISTPHOTOS; m_state = GE_LISTPHOTOS;
m_job = job; m_job = job;
@ -172,14 +172,14 @@ void GalleryTalker::createAlbum( const TQString& parentAlbumName,
form.addPair("newAlbumDesc", albumCaption); form.addPair("newAlbumDesc", albumCaption);
form.finish(); form.finish();
KIO::TransferJob* job = KIO::http_post(m_url, form.formData(), false); TDEIO::TransferJob* job = TDEIO::http_post(m_url, form.formData(), false);
job->addMetaData("content-type", form.contentType() ); job->addMetaData("content-type", form.contentType() );
job->addMetaData("cookies", "manual"); job->addMetaData("cookies", "manual");
job->addMetaData("setcookies", m_cookie); job->addMetaData("setcookies", m_cookie);
connect(job, TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)), connect(job, TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)),
TQT_SLOT(data(KIO::Job*, const TQByteArray&))); TQT_SLOT(data(TDEIO::Job*, const TQByteArray&)));
connect(job, TQT_SIGNAL(result(KIO::Job *)), connect(job, TQT_SIGNAL(result(TDEIO::Job *)),
TQT_SLOT(slotResult(KIO::Job *))); TQT_SLOT(slotResult(TDEIO::Job *)));
m_state = GE_CREATEALBUM; m_state = GE_CREATEALBUM;
m_job = job; m_job = job;
@ -247,14 +247,14 @@ bool GalleryTalker::addPhoto( const TQString& albumName,
form.finish(); form.finish();
KIO::TransferJob* job = KIO::http_post(m_url, form.formData(), false); TDEIO::TransferJob* job = TDEIO::http_post(m_url, form.formData(), false);
job->addMetaData("content-type", form.contentType()); job->addMetaData("content-type", form.contentType());
job->addMetaData("cookies", "manual"); job->addMetaData("cookies", "manual");
job->addMetaData("setcookies", m_cookie); job->addMetaData("setcookies", m_cookie);
connect(job, TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)), connect(job, TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)),
TQT_SLOT(data(KIO::Job*, const TQByteArray&))); TQT_SLOT(data(TDEIO::Job*, const TQByteArray&)));
connect(job, TQT_SIGNAL(result(KIO::Job *)), connect(job, TQT_SIGNAL(result(TDEIO::Job *)),
TQT_SLOT(slotResult(KIO::Job *))); TQT_SLOT(slotResult(TDEIO::Job *)));
m_state = GE_ADDPHOTO; m_state = GE_ADDPHOTO;
m_job = job; m_job = job;
@ -273,7 +273,7 @@ void GalleryTalker::cancel()
} }
} }
void GalleryTalker::data(KIO::Job*, const TQByteArray& data) void GalleryTalker::data(TDEIO::Job*, const TQByteArray& data)
{ {
if (data.isEmpty()) if (data.isEmpty())
return; return;
@ -283,7 +283,7 @@ void GalleryTalker::data(KIO::Job*, const TQByteArray& data)
memcpy(m_buffer.data()+oldSize, data.data(), data.size()); memcpy(m_buffer.data()+oldSize, data.data(), data.size());
} }
void GalleryTalker::slotResult(KIO::Job *job) void GalleryTalker::slotResult(TDEIO::Job *job)
{ {
m_job = 0; m_job = 0;
emit signalBusy( false ); emit signalBusy( false );

@ -22,7 +22,7 @@
#include <tqobject.h> #include <tqobject.h>
#include <kurl.h> #include <kurl.h>
namespace KIO namespace TDEIO
{ {
class Job; class Job;
} }
@ -83,7 +83,7 @@ private:
State m_state; State m_state;
TQString m_cookie; TQString m_cookie;
KURL m_url; KURL m_url;
KIO::Job* m_job; TDEIO::Job* m_job;
bool m_loggedIn; bool m_loggedIn;
TQByteArray m_buffer; TQByteArray m_buffer;
@ -110,8 +110,8 @@ signals:
private slots: private slots:
void data(KIO::Job *job, const TQByteArray &data); void data(TDEIO::Job *job, const TQByteArray &data);
void slotResult (KIO::Job *job); void slotResult (TDEIO::Job *job);
}; };
} }

@ -130,7 +130,7 @@ GalleryWindow::GalleryWindow(KIPI::Interface* interface, TQWidget *parent, Galle
connect(m_addPhotoBtn, TQT_SIGNAL(clicked()), TQT_SLOT( slotAddPhotos())); connect(m_addPhotoBtn, TQT_SIGNAL(clicked()), TQT_SLOT( slotAddPhotos()));
// read config // read config
KConfig config("kipirc"); TDEConfig config("kipirc");
config.setGroup("GallerySync Settings"); config.setGroup("GallerySync Settings");
m_talker = new GalleryTalker( this ); m_talker = new GalleryTalker( this );
@ -178,7 +178,7 @@ GalleryWindow::GalleryWindow(KIPI::Interface* interface, TQWidget *parent, Galle
GalleryWindow::~GalleryWindow() GalleryWindow::~GalleryWindow()
{ {
// write config // write config
KConfig config("kipirc"); TDEConfig config("kipirc");
config.setGroup("GallerySync Settings"); config.setGroup("GallerySync Settings");
config.writeEntry("Resize", m_resizeCheckBox->isChecked()); config.writeEntry("Resize", m_resizeCheckBox->isChecked());
config.writeEntry("Set title", m_captTitleCheckBox->isChecked()); config.writeEntry("Set title", m_captTitleCheckBox->isChecked());

@ -237,7 +237,7 @@ void GPSEditDialog::slotCancel()
void GPSEditDialog::readSettings() void GPSEditDialog::readSettings()
{ {
KConfig config("kipirc"); TDEConfig config("kipirc");
config.setGroup("GPS Sync Settings"); config.setGroup("GPS Sync Settings");
resize(configDialogSize(config, TQString("GPS Edit Dialog"))); resize(configDialogSize(config, TQString("GPS Edit Dialog")));
@ -271,7 +271,7 @@ void GPSEditDialog::readSettings()
void GPSEditDialog::saveSettings() void GPSEditDialog::saveSettings()
{ {
KConfig config("kipirc"); TDEConfig config("kipirc");
config.setGroup("GPS Sync Settings"); config.setGroup("GPS Sync Settings");
saveDialogSize(config, TQString("GPS Edit Dialog")); saveDialogSize(config, TQString("GPS Edit Dialog"));
config.writeEntry("GPS Last Latitude", d->latitudeInput->text().toDouble()); config.writeEntry("GPS Last Latitude", d->latitudeInput->text().toDouble());

@ -290,7 +290,7 @@ void GPSSyncDialog::setImages( const KURL::List& images )
for( KURL::List::ConstIterator it = images.begin(); it != images.end(); ++it ) for( KURL::List::ConstIterator it = images.begin(); it != images.end(); ++it )
new GPSListViewItem(d->listView, d->listView->lastItem(), *it); new GPSListViewItem(d->listView, d->listView->lastItem(), *it);
KIO::PreviewJob *thumbnailJob = KIO::filePreview(images, 64); TDEIO::PreviewJob *thumbnailJob = TDEIO::filePreview(images, 64);
connect(thumbnailJob, TQT_SIGNAL(gotPreview(const KFileItem*, const TQPixmap&)), connect(thumbnailJob, TQT_SIGNAL(gotPreview(const KFileItem*, const TQPixmap&)),
this, TQT_SLOT(slotGotThumbnail(const KFileItem*, const TQPixmap&))); this, TQT_SLOT(slotGotThumbnail(const KFileItem*, const TQPixmap&)));
@ -382,7 +382,7 @@ bool GPSSyncDialog::promptUserClose()
void GPSSyncDialog::readSettings() void GPSSyncDialog::readSettings()
{ {
KConfig config("kipirc"); TDEConfig config("kipirc");
config.setGroup("GPS Sync Settings"); config.setGroup("GPS Sync Settings");
d->maxGapInput->setValue(config.readNumEntry("Max Gap Time", 30)); d->maxGapInput->setValue(config.readNumEntry("Max Gap Time", 30));
d->timeZoneCB->setCurrentItem(config.readNumEntry("Time Zone", 16)); // GMT+00:00 d->timeZoneCB->setCurrentItem(config.readNumEntry("Time Zone", 16)); // GMT+00:00
@ -396,7 +396,7 @@ void GPSSyncDialog::readSettings()
void GPSSyncDialog::saveSettings() void GPSSyncDialog::saveSettings()
{ {
KConfig config("kipirc"); TDEConfig config("kipirc");
config.setGroup("GPS Sync Settings"); config.setGroup("GPS Sync Settings");
config.writeEntry("Max Gap Time", d->maxGapInput->value() ); config.writeEntry("Max Gap Time", d->maxGapInput->value() );
config.writeEntry("Time Zone", d->timeZoneCB->currentItem() ); config.writeEntry("Time Zone", d->timeZoneCB->currentItem() );

@ -465,7 +465,7 @@ void kmlExport::generate()
delete kmlDocument; delete kmlDocument;
KIO::moveAs(m_tempDestDir,m_baseDestDir,false); TDEIO::moveAs(m_tempDestDir,m_baseDestDir,false);
logInfo(i18n("Move to final directory")); logInfo(i18n("Move to final directory"));
m_progressDialog->close(); m_progressDialog->close();
} }
@ -475,7 +475,7 @@ void kmlExport::generate()
*/ */
int kmlExport::getConfig() int kmlExport::getConfig()
{ {
KConfig config("kipirc"); TDEConfig config("kipirc");
config.setGroup("KMLExport Settings"); config.setGroup("KMLExport Settings");
m_localTarget = config.readBoolEntry("localTarget"); m_localTarget = config.readBoolEntry("localTarget");

@ -295,7 +295,7 @@ KMLExportConfig::KMLExportConfig( TQWidget* parent, const char* name)
// -------------------------------------------------------------- // --------------------------------------------------------------
// Configuration file management // Configuration file management
config_ = new KConfig("kipirc"); config_ = new TDEConfig("kipirc");
config_->setGroup("KMLExport Settings"); config_->setGroup("KMLExport Settings");
readSettings(); readSettings();

@ -118,7 +118,7 @@ protected:
TQGridLayout *TargetPreferenceGroupBoxLayout; TQGridLayout *TargetPreferenceGroupBoxLayout;
TQGridLayout *buttonGroupTargetTypeLayout; TQGridLayout *buttonGroupTargetTypeLayout;
KConfig *config_; TDEConfig *config_;
KIPIPlugins::KPAboutData *m_about; KIPIPlugins::KPAboutData *m_about;

@ -45,7 +45,7 @@ AbstractThemeParameter::~AbstractThemeParameter() {
} }
void AbstractThemeParameter::init(const TQCString& internalName, const KConfigBase* configFile) { void AbstractThemeParameter::init(const TQCString& internalName, const TDEConfigBase* configFile) {
d->mInternalName = internalName; d->mInternalName = internalName;
d->mName = configFile->readEntry(NAME_KEY); d->mName = configFile->readEntry(NAME_KEY);
d->mDefaultValue = configFile->readEntry(DEFAULT_VALUE_KEY); d->mDefaultValue = configFile->readEntry(DEFAULT_VALUE_KEY);

@ -24,7 +24,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Cambridge, MA 02110-1301, USA
class TQCString; class TQCString;
class TQString; class TQString;
class TQWidget; class TQWidget;
class KConfigBase; class TDEConfigBase;
namespace KIPIHTMLExport { namespace KIPIHTMLExport {
@ -42,7 +42,7 @@ public:
* Reads theme parameters from configFile. Initializes the internalName, * Reads theme parameters from configFile. Initializes the internalName,
* name and defaultValue fields. * name and defaultValue fields.
*/ */
virtual void init(const TQCString& internalName, const KConfigBase* configFile); virtual void init(const TQCString& internalName, const TDEConfigBase* configFile);
TQCString internalName() const; TQCString internalName() const;

@ -38,7 +38,7 @@ TQString GalleryInfo::getThemeParameterValue(
const TQString& defaultValue) const const TQString& defaultValue) const
{ {
TQString groupName = THEME_GROUP_PREFIX + theme; TQString groupName = THEME_GROUP_PREFIX + theme;
KConfigGroupSaver saver(config(), groupName); TDEConfigGroupSaver saver(config(), groupName);
return config()->readEntry(parameter, defaultValue); return config()->readEntry(parameter, defaultValue);
} }
@ -49,10 +49,10 @@ void GalleryInfo::setThemeParameterValue(
const TQString& value) const TQString& value)
{ {
// FIXME: This is hackish, but config() is const :'( // FIXME: This is hackish, but config() is const :'(
KConfig* localConfig = const_cast<KConfig*>(config()); TDEConfig* localConfig = const_cast<TDEConfig*>(config());
TQString groupName = THEME_GROUP_PREFIX + theme; TQString groupName = THEME_GROUP_PREFIX + theme;
KConfigGroupSaver saver(localConfig, groupName); TDEConfigGroupSaver saver(localConfig, groupName);
return localConfig->writeEntry(parameter, value); return localConfig->writeEntry(parameter, value);
} }

@ -66,21 +66,21 @@ public:
private: private:
/** /**
* KConfigXT enums are mapped to ints. * TDEConfigXT enums are mapped to ints.
* This method returns the string associated to the enum value. * This method returns the string associated to the enum value.
*/ */
TQString getEnumString(const TQString& itemName) const { TQString getEnumString(const TQString& itemName) const {
// findItem is not marked const :-( // findItem is not marked const :-(
GalleryInfo* that=const_cast<GalleryInfo*>(this); GalleryInfo* that=const_cast<GalleryInfo*>(this);
KConfigSkeletonItem* tmp=that->findItem(itemName); TDEConfigSkeletonItem* tmp=that->findItem(itemName);
KConfigSkeleton::ItemEnum* item=dynamic_cast<KConfigSkeleton::ItemEnum*>(tmp); TDEConfigSkeleton::ItemEnum* item=dynamic_cast<TDEConfigSkeleton::ItemEnum*>(tmp);
Q_ASSERT(item); Q_ASSERT(item);
if (!item) return TQString(); if (!item) return TQString();
int value=item->value(); int value=item->value();
TQValueList<KConfigSkeleton::ItemEnum::Choice> lst=item->choices(); TQValueList<TDEConfigSkeleton::ItemEnum::Choice> lst=item->choices();
TQValueList<KConfigSkeleton::ItemEnum::Choice>::ConstIterator TQValueList<TDEConfigSkeleton::ItemEnum::Choice>::ConstIterator
it=lst.begin(), end=lst.end(); it=lst.begin(), end=lst.end();
for (int pos=0; it!=end; ++it, pos++) { for (int pos=0; it!=end; ++it, pos++) {

@ -187,9 +187,9 @@ struct Generator::Private {
destURL.addPath(srcURL.filename()); destURL.addPath(srcURL.filename());
if (TQFile::exists(destURL.path())) { if (TQFile::exists(destURL.path())) {
KIO::NetAccess::del(destURL, mProgressDialog); TDEIO::NetAccess::del(destURL, mProgressDialog);
} }
bool ok=KIO::NetAccess::dircopy(srcURL, destURL, mProgressDialog); bool ok=TDEIO::NetAccess::dircopy(srcURL, destURL, mProgressDialog);
if (!ok) { if (!ok) {
logError(i18n("Could not copy theme")); logError(i18n("Could not copy theme"));
return false; return false;

@ -51,7 +51,7 @@ IntThemeParameter::~IntThemeParameter() {
} }
void IntThemeParameter::init(const TQCString& internalName, const KConfigBase* configFile) { void IntThemeParameter::init(const TQCString& internalName, const TDEConfigBase* configFile) {
AbstractThemeParameter::init(internalName, configFile); AbstractThemeParameter::init(internalName, configFile);
d->mMinValue = configFile->readNumEntry(MIN_VALUE_KEY, 0); d->mMinValue = configFile->readNumEntry(MIN_VALUE_KEY, 0);

@ -39,7 +39,7 @@ public:
IntThemeParameter(); IntThemeParameter();
~IntThemeParameter(); ~IntThemeParameter();
virtual void init(const TQCString& internalName, const KConfigBase* configFile); virtual void init(const TQCString& internalName, const TDEConfigBase* configFile);
virtual TQWidget* createWidget(TQWidget* parent, const TQString& value) const; virtual TQWidget* createWidget(TQWidget* parent, const TQString& value) const;
virtual TQString valueFromWidget(TQWidget*) const; virtual TQString valueFromWidget(TQWidget*) const;

@ -45,7 +45,7 @@ ListThemeParameter::~ListThemeParameter() {
delete d; delete d;
} }
void ListThemeParameter::init(const TQCString& internalName, const KConfigBase* configFile) { void ListThemeParameter::init(const TQCString& internalName, const TDEConfigBase* configFile) {
AbstractThemeParameter::init(internalName, configFile); AbstractThemeParameter::init(internalName, configFile);
for (int pos=0;; ++pos) { for (int pos=0;; ++pos) {

@ -35,7 +35,7 @@ public:
ListThemeParameter(); ListThemeParameter();
~ListThemeParameter(); ~ListThemeParameter();
virtual void init(const TQCString& internalName, const KConfigBase* configFile); virtual void init(const TQCString& internalName, const TDEConfigBase* configFile);
virtual TQWidget* createWidget(TQWidget* parent, const TQString& value) const; virtual TQWidget* createWidget(TQWidget* parent, const TQString& value) const;
virtual TQString valueFromWidget(TQWidget*) const; virtual TQString valueFromWidget(TQWidget*) const;

@ -104,7 +104,7 @@ struct Theme::Private {
TQString group = PARAMETER_GROUP_PREFIX + *it; TQString group = PARAMETER_GROUP_PREFIX + *it;
TQCString internalName = (*it).utf8(); TQCString internalName = (*it).utf8();
KConfigGroupSaver saver(mDesktopFile, group); TDEConfigGroupSaver saver(mDesktopFile, group);
TQString type = mDesktopFile->readEntry(PARAMETER_TYPE_KEY); TQString type = mDesktopFile->readEntry(PARAMETER_TYPE_KEY);
AbstractThemeParameter* parameter; AbstractThemeParameter* parameter;
if (type == STRING_PARAMETER_TYPE) { if (type == STRING_PARAMETER_TYPE) {
@ -192,13 +192,13 @@ TQString Theme::directory() const {
TQString Theme::authorName() const { TQString Theme::authorName() const {
KConfigGroupSaver saver(d->mDesktopFile, AUTHOR_GROUP); TDEConfigGroupSaver saver(d->mDesktopFile, AUTHOR_GROUP);
return d->mDesktopFile->readEntry("Name"); return d->mDesktopFile->readEntry("Name");
} }
TQString Theme::authorUrl() const { TQString Theme::authorUrl() const {
KConfigGroupSaver saver(d->mDesktopFile, AUTHOR_GROUP); TDEConfigGroupSaver saver(d->mDesktopFile, AUTHOR_GROUP);
return d->mDesktopFile->readEntry("Url"); return d->mDesktopFile->readEntry("Url");
} }

@ -76,7 +76,7 @@ public:
struct Wizard::Private { struct Wizard::Private {
GalleryInfo* mInfo; GalleryInfo* mInfo;
KConfigDialogManager* mConfigManager; TDEConfigDialogManager* mConfigManager;
KIPI::ImageCollectionSelector* mCollectionSelector; KIPI::ImageCollectionSelector* mCollectionSelector;
ThemePage* mThemePage; ThemePage* mThemePage;
@ -209,7 +209,7 @@ Wizard::Wizard(TQWidget* parent, KIPI::Interface* interface, GalleryInfo* info)
connect(d->mOutputPage->kcfg_destURL, TQT_SIGNAL(textChanged(const TQString&)), connect(d->mOutputPage->kcfg_destURL, TQT_SIGNAL(textChanged(const TQString&)),
this, TQT_SLOT(updateFinishButton()) ); this, TQT_SLOT(updateFinishButton()) );
d->mConfigManager=new KConfigDialogManager(this, d->mInfo); d->mConfigManager=new TDEConfigDialogManager(this, d->mInfo);
d->mConfigManager->updateWidgets(); d->mConfigManager->updateWidgets();
// Set page states // Set page states

@ -381,7 +381,7 @@ UploadDialog::imageSelected( TQListViewItem *item )
KURL url( IdemIndexed ); KURL url( IdemIndexed );
KIO::PreviewJob* m_thumbJob = KIO::filePreview( url, m_imagePreview->height() ); TDEIO::PreviewJob* m_thumbJob = TDEIO::filePreview( url, m_imagePreview->height() );
connect( m_thumbJob, TQT_SIGNAL( gotPreview(const KFileItem*, const TQPixmap&) ), connect( m_thumbJob, TQT_SIGNAL( gotPreview(const KFileItem*, const TQPixmap&) ),
this, TQT_SLOT( gotImagePreview(const KFileItem*, const TQPixmap&) ) ); this, TQT_SLOT( gotImagePreview(const KFileItem*, const TQPixmap&) ) );

@ -642,7 +642,7 @@ void CameraUI::slotChangeDownloadDirectory() {
} }
void CameraUI::writeSettings() { void CameraUI::writeSettings() {
mConfig = new KConfig("kipirc"); mConfig = new TDEConfig("kipirc");
mConfig->setGroup("KameraKlient Settings"); mConfig->setGroup("KameraKlient Settings");
mConfig->writePathEntry("DownloadDirectory", mDownloadDirectoryEdit->text()); mConfig->writePathEntry("DownloadDirectory", mDownloadDirectoryEdit->text());
mConfig->writeEntry("DialogSize", frameSize()); mConfig->writeEntry("DialogSize", frameSize());
@ -654,7 +654,7 @@ void CameraUI::writeSettings() {
} }
void CameraUI::readSettings() { void CameraUI::readSettings() {
mConfig = new KConfig("kipirc"); mConfig = new TDEConfig("kipirc");
mConfig->setGroup("KameraKlient Settings"); mConfig->setGroup("KameraKlient Settings");
mDownloadDirectoryEdit->setText(mConfig->readPathEntry("DownloadDirectory", "$HOME")); mDownloadDirectoryEdit->setText(mConfig->readPathEntry("DownloadDirectory", "$HOME"));
resize(mConfig->readSizeEntry("DialogSize")); resize(mConfig->readSizeEntry("DialogSize"));

@ -55,7 +55,7 @@ class KToggleAction;
namespace KIO { namespace TDEIO {
class Job; class Job;
} }
@ -161,7 +161,7 @@ private:
KStatusBar *mStatusBar; KStatusBar *mStatusBar;
KConfig *mConfig; TDEConfig *mConfig;
GPEventFilter *efilter_; GPEventFilter *efilter_;

@ -158,7 +158,7 @@ void CommentEditDialog::slotCancel()
void CommentEditDialog::readSettings() void CommentEditDialog::readSettings()
{ {
KConfig config("kipirc"); TDEConfig config("kipirc");
config.setGroup("Comments Edit Settings"); config.setGroup("Comments Edit Settings");
setCheckedSyncJFIFComment(config.readBoolEntry("Sync JFIF Comment", true)); setCheckedSyncJFIFComment(config.readBoolEntry("Sync JFIF Comment", true));
setCheckedSyncEXIFComment(config.readBoolEntry("Sync EXIF Comment", true)); setCheckedSyncEXIFComment(config.readBoolEntry("Sync EXIF Comment", true));
@ -168,7 +168,7 @@ void CommentEditDialog::readSettings()
void CommentEditDialog::saveSettings() void CommentEditDialog::saveSettings()
{ {
KConfig config("kipirc"); TDEConfig config("kipirc");
config.setGroup("Comments Edit Settings"); config.setGroup("Comments Edit Settings");
config.writeEntry("Sync JFIF Comment", syncJFIFCommentIsChecked()); config.writeEntry("Sync JFIF Comment", syncJFIFCommentIsChecked());
config.writeEntry("Sync EXIF Comment", syncEXIFCommentIsChecked()); config.writeEntry("Sync EXIF Comment", syncEXIFCommentIsChecked());

@ -149,7 +149,7 @@ void CommentRemoveDialog::slotCancel()
void CommentRemoveDialog::readSettings() void CommentRemoveDialog::readSettings()
{ {
KConfig config("kipirc"); TDEConfig config("kipirc");
config.setGroup("Comments Remove Settings"); config.setGroup("Comments Remove Settings");
setCheckedRemoveHOSTComment(config.readBoolEntry("Remove HOST Comment", true)); setCheckedRemoveHOSTComment(config.readBoolEntry("Remove HOST Comment", true));
setCheckedRemoveJFIFComment(config.readBoolEntry("Remove JFIF Comment", true)); setCheckedRemoveJFIFComment(config.readBoolEntry("Remove JFIF Comment", true));
@ -160,7 +160,7 @@ void CommentRemoveDialog::readSettings()
void CommentRemoveDialog::saveSettings() void CommentRemoveDialog::saveSettings()
{ {
KConfig config("kipirc"); TDEConfig config("kipirc");
config.setGroup("Comments Remove Settings"); config.setGroup("Comments Remove Settings");
config.writeEntry("Remove HOST Comment", removeHOSTCommentIsChecked()); config.writeEntry("Remove HOST Comment", removeHOSTCommentIsChecked());
config.writeEntry("Remove JFIF Comment", removeJFIFCommentIsChecked()); config.writeEntry("Remove JFIF Comment", removeJFIFCommentIsChecked());

@ -229,7 +229,7 @@ void EXIFEditDialog::slotClose()
void EXIFEditDialog::readSettings() void EXIFEditDialog::readSettings()
{ {
KConfig config("kipirc"); TDEConfig config("kipirc");
config.setGroup("Metadata Edit Settings"); config.setGroup("Metadata Edit Settings");
showPage(config.readNumEntry("EXIF Edit Page", 0)); showPage(config.readNumEntry("EXIF Edit Page", 0));
d->captionPage->setCheckedSyncJFIFComment(config.readBoolEntry("Sync JFIF Comment", true)); d->captionPage->setCheckedSyncJFIFComment(config.readBoolEntry("Sync JFIF Comment", true));
@ -242,7 +242,7 @@ void EXIFEditDialog::readSettings()
void EXIFEditDialog::saveSettings() void EXIFEditDialog::saveSettings()
{ {
KConfig config("kipirc"); TDEConfig config("kipirc");
config.setGroup("Metadata Edit Settings"); config.setGroup("Metadata Edit Settings");
config.writeEntry("EXIF Edit Page", activePageIndex()); config.writeEntry("EXIF Edit Page", activePageIndex());
config.writeEntry("Sync JFIF Comment", d->captionPage->syncJFIFCommentIsChecked()); config.writeEntry("Sync JFIF Comment", d->captionPage->syncJFIFCommentIsChecked());

@ -251,7 +251,7 @@ void IPTCEditDialog::slotClose()
void IPTCEditDialog::readSettings() void IPTCEditDialog::readSettings()
{ {
KConfig config("kipirc"); TDEConfig config("kipirc");
config.setGroup("Metadata Edit Settings"); config.setGroup("Metadata Edit Settings");
showPage(config.readNumEntry("IPTC Edit Page", 0)); showPage(config.readNumEntry("IPTC Edit Page", 0));
d->captionPage->setCheckedSyncJFIFComment(config.readBoolEntry("Sync JFIF Comment", true)); d->captionPage->setCheckedSyncJFIFComment(config.readBoolEntry("Sync JFIF Comment", true));
@ -264,7 +264,7 @@ void IPTCEditDialog::readSettings()
void IPTCEditDialog::saveSettings() void IPTCEditDialog::saveSettings()
{ {
KConfig config("kipirc"); TDEConfig config("kipirc");
config.setGroup("Metadata Edit Settings"); config.setGroup("Metadata Edit Settings");
config.writeEntry("IPTC Edit Page", activePageIndex()); config.writeEntry("IPTC Edit Page", activePageIndex());
config.writeEntry("Sync JFIF Comment", d->captionPage->syncJFIFCommentIsChecked()); config.writeEntry("Sync JFIF Comment", d->captionPage->syncJFIFCommentIsChecked());

@ -45,7 +45,7 @@ namespace KIPIMPEGEncoderPlugin
CheckBinProg::CheckBinProg(TQObject *parent) CheckBinProg::CheckBinProg(TQObject *parent)
{ {
config = new KConfig("kipirc"); config = new TDEConfig("kipirc");
config->setGroup("MPEGEncoder Settings"); config->setGroup("MPEGEncoder Settings");
ImageMagickPath = config->readPathEntry("ImageMagickBinFolder"); ImageMagickPath = config->readPathEntry("ImageMagickBinFolder");
MjpegToolsPath = config->readPathEntry("MjpegToolsBinFolder"); MjpegToolsPath = config->readPathEntry("MjpegToolsBinFolder");

@ -26,7 +26,7 @@
#include <tqobject.h> #include <tqobject.h>
#include <tqstring.h> #include <tqstring.h>
class KConfig; class TDEConfig;
namespace KIPIMPEGEncoderPlugin namespace KIPIMPEGEncoderPlugin
{ {
@ -42,7 +42,7 @@ public:
int findExecutables( void ); int findExecutables( void );
private: private:
KConfig* config; TDEConfig* config;
TQString ImageMagickPath; TQString ImageMagickPath;
TQString MjpegToolsPath; TQString MjpegToolsPath;
}; };

@ -425,7 +425,7 @@ void KImg2mpgData::slotImagesFilesSelected( TQListBoxItem *item )
if ( m_thumbJob ) delete m_thumbJob; if ( m_thumbJob ) delete m_thumbJob;
m_thumbJob = KIO::filePreview( url, m_ImageLabel->width() ); m_thumbJob = TDEIO::filePreview( url, m_ImageLabel->width() );
connect(m_thumbJob, TQT_SIGNAL(gotPreview(const KFileItem*, const TQPixmap&)), connect(m_thumbJob, TQT_SIGNAL(gotPreview(const KFileItem*, const TQPixmap&)),
TQT_SLOT(slotGotPreview(const KFileItem*, const TQPixmap&))); TQT_SLOT(slotGotPreview(const KFileItem*, const TQPixmap&)));
@ -1031,7 +1031,7 @@ void KImg2mpgData::reset()
void KImg2mpgData::writeSettings() void KImg2mpgData::writeSettings()
{ {
m_config = new KConfig("kipirc"); m_config = new TDEConfig("kipirc");
m_config->setGroup("MPEGEncoder Settings"); m_config->setGroup("MPEGEncoder Settings");
m_VideoFormatConfig = m_VideoFormatComboBox->currentText(); m_VideoFormatConfig = m_VideoFormatComboBox->currentText();
@ -1070,7 +1070,7 @@ void KImg2mpgData::writeSettings()
void KImg2mpgData::readSettings() void KImg2mpgData::readSettings()
{ {
m_config = new KConfig("kipirc"); m_config = new TDEConfig("kipirc");
m_config->setGroup("MPEGEncoder Settings"); m_config->setGroup("MPEGEncoder Settings");
m_VideoFormatConfig = m_config->readEntry("VideoFormat", "XVCD"); m_VideoFormatConfig = m_config->readEntry("VideoFormat", "XVCD");

@ -58,7 +58,7 @@ class TQLabel;
class TQWidget; class TQWidget;
class TQPixmap; class TQPixmap;
class KConfig; class TDEConfig;
class TDEProcess; class TDEProcess;
class KLineEdit; class KLineEdit;
class KIconLoader; class KIconLoader;
@ -153,9 +153,9 @@ private:
TQColor m_BackgroundColorConfig; TQColor m_BackgroundColorConfig;
KConfig* m_config; TDEConfig* m_config;
KIO::PreviewJob* m_thumbJob; TDEIO::PreviewJob* m_thumbJob;
TQTime m_EncodingDuration; TQTime m_EncodingDuration;
TQTime m_DurationTime; TQTime m_DurationTime;

@ -178,16 +178,16 @@ void PicasawebTalker::getToken(const TQString& username, const TQString& passwor
ts.setEncoding(TQTextStream::UnicodeUTF8); ts.setEncoding(TQTextStream::UnicodeUTF8);
ts << dataParameters; ts << dataParameters;
KIO::TransferJob* job = KIO::http_post(url, buffer, false); TDEIO::TransferJob* job = TDEIO::http_post(url, buffer, false);
job->addMetaData("content-type", "Content-Type: application/x-www-form-urlencoded" ); job->addMetaData("content-type", "Content-Type: application/x-www-form-urlencoded" );
m_state = FE_GETTOKEN; m_state = FE_GETTOKEN;
authProgressDlg->setLabelText(i18n("Getting the token")); authProgressDlg->setLabelText(i18n("Getting the token"));
connect(job, TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)), connect(job, TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)),
this, TQT_SLOT(data(KIO::Job*, const TQByteArray&))); this, TQT_SLOT(data(TDEIO::Job*, const TQByteArray&)));
connect(job, TQT_SIGNAL(result(KIO::Job *)), connect(job, TQT_SIGNAL(result(TDEIO::Job *)),
this, TQT_SLOT(slotResult(KIO::Job *))); this, TQT_SLOT(slotResult(TDEIO::Job *)));
m_job = job; m_job = job;
m_buffer.resize(0); m_buffer.resize(0);
@ -220,16 +220,16 @@ void PicasawebTalker::checkToken(const TQString& /*token*/)
TQString url = "https://www.google.com/accounts/ClientLogin"; TQString url = "https://www.google.com/accounts/ClientLogin";
TQString auth_string = "GoogleLogin auth=" + m_token; TQString auth_string = "GoogleLogin auth=" + m_token;
TQByteArray tmp; TQByteArray tmp;
KIO::TransferJob* job = KIO::http_post(url, tmp, false); TDEIO::TransferJob* job = TDEIO::http_post(url, tmp, false);
job->addMetaData("customHTTPHeader", "Authorization: " + auth_string); job->addMetaData("customHTTPHeader", "Authorization: " + auth_string);
job->addMetaData("content-type", "Content-Type: application/x-www-form-urlencoded"); job->addMetaData("content-type", "Content-Type: application/x-www-form-urlencoded");
connect(job, TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)), connect(job, TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)),
this, TQT_SLOT(data(KIO::Job*, const TQByteArray&))); this, TQT_SLOT(data(TDEIO::Job*, const TQByteArray&)));
connect(job, TQT_SIGNAL(result(KIO::Job *)), connect(job, TQT_SIGNAL(result(TDEIO::Job *)),
this, TQT_SLOT(slotResult(KIO::Job *))); this, TQT_SLOT(slotResult(TDEIO::Job *)));
m_state = FE_CHECKTOKEN; m_state = FE_CHECKTOKEN;
authProgressDlg->setLabelText(i18n("Checking if previous token is still valid")); authProgressDlg->setLabelText(i18n("Checking if previous token is still valid"));
@ -256,15 +256,15 @@ void PicasawebTalker::listAllAlbums() {
TQString url = "http://picasaweb.google.com/data/feed/api/user/" + m_username + "?kind=album"; TQString url = "http://picasaweb.google.com/data/feed/api/user/" + m_username + "?kind=album";
TQByteArray tmp; TQByteArray tmp;
TQString auth_string = "GoogleLogin auth=" + m_token; TQString auth_string = "GoogleLogin auth=" + m_token;
KIO::TransferJob* job = KIO::get(url, !tmp.isNull(), false); TDEIO::TransferJob* job = TDEIO::get(url, !tmp.isNull(), false);
job->addMetaData("content-type", "Content-Type: application/x-www-form-urlencoded" ); job->addMetaData("content-type", "Content-Type: application/x-www-form-urlencoded" );
job->addMetaData("customHTTPHeader", "Authorization: " + auth_string ); job->addMetaData("customHTTPHeader", "Authorization: " + auth_string );
connect(job, TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)), connect(job, TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)),
this, TQT_SLOT(data(KIO::Job*, const TQByteArray&))); this, TQT_SLOT(data(TDEIO::Job*, const TQByteArray&)));
connect(job, TQT_SIGNAL(result(KIO::Job *)), connect(job, TQT_SIGNAL(result(TDEIO::Job *)),
this, TQT_SLOT(slotResult(KIO::Job *))); this, TQT_SLOT(slotResult(TDEIO::Job *)));
m_state = FE_LISTALBUMS; m_state = FE_LISTALBUMS;
m_job = job; m_job = job;
@ -292,14 +292,14 @@ void PicasawebTalker::getPhotoProperty(const TQString& method,const TQString& ar
TQString queryStr=headers.join("&"); TQString queryStr=headers.join("&");
TQString postUrl=url+queryStr; TQString postUrl=url+queryStr;
TQByteArray tmp; TQByteArray tmp;
KIO::TransferJob* job = KIO::http_post(postUrl, tmp, false); TDEIO::TransferJob* job = TDEIO::http_post(postUrl, tmp, false);
job->addMetaData("content-type", "Content-Type: application/x-www-form-urlencoded" ); job->addMetaData("content-type", "Content-Type: application/x-www-form-urlencoded" );
connect(job, TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)), connect(job, TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)),
this, TQT_SLOT(data(KIO::Job*, const TQByteArray&))); this, TQT_SLOT(data(TDEIO::Job*, const TQByteArray&)));
connect(job, TQT_SIGNAL(result(KIO::Job *)), connect(job, TQT_SIGNAL(result(TDEIO::Job *)),
this, TQT_SLOT(slotResult(KIO::Job *))); this, TQT_SLOT(slotResult(TDEIO::Job *)));
m_state = FE_GETPHOTOPROPERTY; m_state = FE_GETPHOTOPROPERTY;
m_job = job; m_job = job;
@ -328,16 +328,16 @@ void PicasawebTalker::addPhotoTag(const TQString& photoURI, const TQString& tag)
ts << addTagXML; ts << addTagXML;
TQString auth_string = "GoogleLogin auth=" + m_token; TQString auth_string = "GoogleLogin auth=" + m_token;
KIO::TransferJob* job = KIO::http_post(postUrl, buffer, false); TDEIO::TransferJob* job = TDEIO::http_post(postUrl, buffer, false);
job->addMetaData("content-type", "Content-Type: application/atom+xml"); job->addMetaData("content-type", "Content-Type: application/atom+xml");
job->addMetaData("content-length", TQString("Content-Length: %1").arg(addTagXML.length())); job->addMetaData("content-length", TQString("Content-Length: %1").arg(addTagXML.length()));
job->addMetaData("customHTTPHeader", "Authorization: " + auth_string ); job->addMetaData("customHTTPHeader", "Authorization: " + auth_string );
//connect(job, TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)), //connect(job, TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)),
// this, TQT_SLOT(data(KIO::Job*, const TQByteArray&))); // this, TQT_SLOT(data(TDEIO::Job*, const TQByteArray&)));
connect(job, TQT_SIGNAL(result(KIO::Job *)), connect(job, TQT_SIGNAL(result(TDEIO::Job *)),
this, TQT_SLOT(slotResult(KIO::Job *))); this, TQT_SLOT(slotResult(TDEIO::Job *)));
m_state = FE_ADDTAG; m_state = FE_ADDTAG;
m_job = job; m_job = job;
@ -390,16 +390,16 @@ void PicasawebTalker::createAlbum(const TQString& albumTitle, const TQString& al
MPForm form; MPForm form;
TQString postUrl = "http://www.picasaweb.google.com/data/feed/api/user/" + m_username ; TQString postUrl = "http://www.picasaweb.google.com/data/feed/api/user/" + m_username ;
TQString auth_string = "GoogleLogin auth=" + m_token; TQString auth_string = "GoogleLogin auth=" + m_token;
KIO::TransferJob* job = KIO::http_post(postUrl, buffer, false); TDEIO::TransferJob* job = TDEIO::http_post(postUrl, buffer, false);
job->addMetaData("content-type", "Content-Type: application/atom+xml"); job->addMetaData("content-type", "Content-Type: application/atom+xml");
job->addMetaData("content-length", TQString("Content-Length: %1").arg(newAlbumXML.length())); job->addMetaData("content-length", TQString("Content-Length: %1").arg(newAlbumXML.length()));
job->addMetaData("customHTTPHeader", "Authorization: " + auth_string ); job->addMetaData("customHTTPHeader", "Authorization: " + auth_string );
connect(job, TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)), connect(job, TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)),
this, TQT_SLOT(data(KIO::Job*, const TQByteArray&))); this, TQT_SLOT(data(TDEIO::Job*, const TQByteArray&)));
connect(job, TQT_SIGNAL(result(KIO::Job *)), connect(job, TQT_SIGNAL(result(TDEIO::Job *)),
this, TQT_SLOT(slotResult(KIO::Job *))); this, TQT_SLOT(slotResult(TDEIO::Job *)));
m_state = FE_CREATEALBUM; m_state = FE_CREATEALBUM;
m_job = job; m_job = job;
@ -493,15 +493,15 @@ bool PicasawebTalker::addPhoto(const TQString& photoPath, FPhotoInfo& info,
form.finish(); form.finish();
KIO::TransferJob* job = KIO::http_post(postUrl, form.formData(), false); TDEIO::TransferJob* job = TDEIO::http_post(postUrl, form.formData(), false);
job->addMetaData("content-type", form.contentType()); job->addMetaData("content-type", form.contentType());
job->addMetaData("customHTTPHeader", "Authorization: " + auth_string ); job->addMetaData("customHTTPHeader", "Authorization: " + auth_string );
connect(job, TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)), connect(job, TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)),
this, TQT_SLOT(data(KIO::Job*, const TQByteArray&))); this, TQT_SLOT(data(TDEIO::Job*, const TQByteArray&)));
connect(job, TQT_SIGNAL(result(KIO::Job *)), connect(job, TQT_SIGNAL(result(TDEIO::Job *)),
this, TQT_SLOT(slotResult(KIO::Job *))); this, TQT_SLOT(slotResult(TDEIO::Job *)));
m_state = FE_ADDPHOTO; m_state = FE_ADDPHOTO;
m_job = job; m_job = job;
@ -532,11 +532,11 @@ void PicasawebTalker::cancel()
authProgressDlg->hide(); authProgressDlg->hide();
} }
void PicasawebTalker::info(KIO::Job* /*job*/, const TQString& /*str*/) void PicasawebTalker::info(TDEIO::Job* /*job*/, const TQString& /*str*/)
{ {
} }
void PicasawebTalker::data(KIO::Job*, const TQByteArray& data) void PicasawebTalker::data(TDEIO::Job*, const TQByteArray& data)
{ {
if (data.isEmpty()) if (data.isEmpty())
return; return;
@ -597,7 +597,7 @@ void PicasawebTalker::slotError(const TQString & error)
//kdDebug()<<"Not handling the error now will see it later"<<endl; //kdDebug()<<"Not handling the error now will see it later"<<endl;
} }
void PicasawebTalker::slotResult(KIO::Job *job) void PicasawebTalker::slotResult(TDEIO::Job *job)
{ {
m_job = 0; m_job = 0;
emit signalBusy(false); emit signalBusy(false);

@ -36,7 +36,7 @@
#include <kurl.h> #include <kurl.h>
#include <kio/jobclasses.h> #include <kio/jobclasses.h>
namespace KIO namespace TDEIO
{ {
class Job; class Job;
} }
@ -131,9 +131,9 @@ private slots:
void slotError( const TQString& msg ); void slotError( const TQString& msg );
// void slotAuthenticate() ; // void slotAuthenticate() ;
void data(KIO::Job *job, const TQByteArray &data); void data(TDEIO::Job *job, const TQByteArray &data);
void info(KIO::Job *job, const TQString& str); void info(TDEIO::Job *job, const TQString& str);
void slotResult (KIO::Job *job); void slotResult (TDEIO::Job *job);
private: private:
@ -155,7 +155,7 @@ private:
TQMap<TQString, TQStringList > tags_map; TQMap<TQString, TQStringList > tags_map;
// KURL m_url; // KURL m_url;
KIO::Job* m_job; TDEIO::Job* m_job;
State m_state; State m_state;

@ -207,7 +207,7 @@ void BatchDialog::slotDefault()
void BatchDialog::readSettings() void BatchDialog::readSettings()
{ {
KConfig config("kipirc"); TDEConfig config("kipirc");
config.setGroup("RawConverter Settings"); config.setGroup("RawConverter Settings");
m_decodingSettingsBox->setWhiteBalance((KDcrawIface::RawDecodingSettings::WhiteBalance) m_decodingSettingsBox->setWhiteBalance((KDcrawIface::RawDecodingSettings::WhiteBalance)
@ -253,7 +253,7 @@ void BatchDialog::readSettings()
void BatchDialog::saveSettings() void BatchDialog::saveSettings()
{ {
KConfig config("kipirc"); TDEConfig config("kipirc");
config.setGroup("RawConverter Settings"); config.setGroup("RawConverter Settings");
config.writeEntry("White Balance", m_decodingSettingsBox->whiteBalance()); config.writeEntry("White Balance", m_decodingSettingsBox->whiteBalance());
@ -519,21 +519,21 @@ void BatchDialog::processed(const TQString& file, const TQString& tmpFile)
struct stat statBuf; struct stat statBuf;
if (::stat(TQFile::encodeName(destFile), &statBuf) == 0) if (::stat(TQFile::encodeName(destFile), &statBuf) == 0)
{ {
KIO::RenameDlg dlg(this, i18n("Save Raw Image converted from '%1' as") TDEIO::RenameDlg dlg(this, i18n("Save Raw Image converted from '%1' as")
.arg(m_currentConvertItem->src), .arg(m_currentConvertItem->src),
tmpFile, destFile, tmpFile, destFile,
KIO::RenameDlg_Mode(KIO::M_SINGLE | KIO::M_OVERWRITE | KIO::M_SKIP)); TDEIO::RenameDlg_Mode(TDEIO::M_SINGLE | TDEIO::M_OVERWRITE | TDEIO::M_SKIP));
switch (dlg.exec()) switch (dlg.exec())
{ {
case KIO::R_CANCEL: case TDEIO::R_CANCEL:
case KIO::R_SKIP: case TDEIO::R_SKIP:
{ {
destFile = TQString(); destFile = TQString();
m_currentConvertItem->viewItem->setPixmap(1, SmallIcon("cancel")); m_currentConvertItem->viewItem->setPixmap(1, SmallIcon("cancel"));
break; break;
} }
case KIO::R_RENAME: case TDEIO::R_RENAME:
{ {
destFile = dlg.newDestURL().path(); destFile = dlg.newDestURL().path();
break; break;

@ -196,7 +196,7 @@ void SingleDialog::slotDefault()
void SingleDialog::readSettings() void SingleDialog::readSettings()
{ {
KConfig config("kipirc"); TDEConfig config("kipirc");
config.setGroup("RawConverter Settings"); config.setGroup("RawConverter Settings");
m_decodingSettingsBox->setWhiteBalance((KDcrawIface::RawDecodingSettings::WhiteBalance) m_decodingSettingsBox->setWhiteBalance((KDcrawIface::RawDecodingSettings::WhiteBalance)
@ -242,7 +242,7 @@ void SingleDialog::readSettings()
void SingleDialog::saveSettings() void SingleDialog::saveSettings()
{ {
KConfig config("kipirc"); TDEConfig config("kipirc");
config.setGroup("RawConverter Settings"); config.setGroup("RawConverter Settings");
config.writeEntry("White Balance", m_decodingSettingsBox->whiteBalance()); config.writeEntry("White Balance", m_decodingSettingsBox->whiteBalance());
@ -433,19 +433,19 @@ void SingleDialog::processed(const TQString&, const TQString& tmpFile)
struct stat statBuf; struct stat statBuf;
if (::stat(TQFile::encodeName(destFile), &statBuf) == 0) if (::stat(TQFile::encodeName(destFile), &statBuf) == 0)
{ {
KIO::RenameDlg dlg(this, i18n("Save Raw Image converted from '%1' as").arg(fi.fileName()), TDEIO::RenameDlg dlg(this, i18n("Save Raw Image converted from '%1' as").arg(fi.fileName()),
tmpFile, destFile, tmpFile, destFile,
KIO::RenameDlg_Mode(KIO::M_SINGLE | KIO::M_OVERWRITE | KIO::M_SKIP)); TDEIO::RenameDlg_Mode(TDEIO::M_SINGLE | TDEIO::M_OVERWRITE | TDEIO::M_SKIP));
switch (dlg.exec()) switch (dlg.exec())
{ {
case KIO::R_CANCEL: case TDEIO::R_CANCEL:
case KIO::R_SKIP: case TDEIO::R_SKIP:
{ {
destFile = TQString(); destFile = TQString();
break; break;
} }
case KIO::R_RENAME: case TDEIO::R_RENAME:
{ {
destFile = dlg.newDestURL().path(); destFile = dlg.newDestURL().path();
break; break;

@ -191,7 +191,7 @@ void SendImagesDialog::readSettings(void)
{ {
// Read all settings from configuration file. // Read all settings from configuration file.
KConfig config("kipirc"); TDEConfig config("kipirc");
config.setGroup("SendImages Settings"); config.setGroup("SendImages Settings");
TQString t = config.readEntry("MailAgentName", "Default"); TQString t = config.readEntry("MailAgentName", "Default");
@ -230,7 +230,7 @@ void SendImagesDialog::writeSettings(void)
{ {
// Write all settings in configuration file. // Write all settings in configuration file.
KConfig config("kipirc"); TDEConfig config("kipirc");
config.setGroup("SendImages Settings"); config.setGroup("SendImages Settings");
config.writeEntry("MailAgentName", m_mailAgentName->currentText()); config.writeEntry("MailAgentName", m_mailAgentName->currentText());
config.writeEntry("ThunderbirdBinPath", m_ThunderbirdBinPath->url()); config.writeEntry("ThunderbirdBinPath", m_ThunderbirdBinPath->url());
@ -627,7 +627,7 @@ void SendImagesDialog::slotImageSelected( TQListBoxItem * item )
if ( m_thumbJob ) if ( m_thumbJob )
delete m_thumbJob; delete m_thumbJob;
m_thumbJob = KIO::filePreview( pitem->url(), m_imageLabel->height() ); m_thumbJob = TDEIO::filePreview( pitem->url(), m_imageLabel->height() );
connect(m_thumbJob, TQT_SIGNAL(gotPreview(const KFileItem*, const TQPixmap&)), connect(m_thumbJob, TQT_SIGNAL(gotPreview(const KFileItem*, const TQPixmap&)),
TQT_SLOT(slotGotPreview(const KFileItem*, const TQPixmap&))); TQT_SLOT(slotGotPreview(const KFileItem*, const TQPixmap&)));

@ -164,7 +164,7 @@ private:
KSqueezedTextLabel *m_ImageAlbum; KSqueezedTextLabel *m_ImageAlbum;
KIPI::Interface *m_interface; KIPI::Interface *m_interface;
KIO::PreviewJob *m_thumbJob; TDEIO::PreviewJob *m_thumbJob;
KIPIPlugins::KPAboutData *m_about; KIPIPlugins::KPAboutData *m_about;
ListImageItems *m_ImagesFilesListBox; ListImageItems *m_ImagesFilesListBox;

@ -144,7 +144,7 @@ bool SimpleViewerExport::configure()
configured = true; configured = true;
if(KIO::NetAccess::exists(m_configDlg->exportURL(), false, TQT_TQWIDGET(kapp->activeWindow()))) if(TDEIO::NetAccess::exists(m_configDlg->exportURL(), false, TQT_TQWIDGET(kapp->activeWindow())))
{ {
int ret = KMessageBox::warningYesNoCancel(TQT_TQWIDGET(kapp->activeWindow()), int ret = KMessageBox::warningYesNoCancel(TQT_TQWIDGET(kapp->activeWindow()),
i18n("Target folder %1 already exists.\n" i18n("Target folder %1 already exists.\n"
@ -154,7 +154,7 @@ bool SimpleViewerExport::configure()
switch(ret) switch(ret)
{ {
case KMessageBox::Yes: case KMessageBox::Yes:
if(!KIO::NetAccess::del(m_configDlg->exportURL(), TQT_TQWIDGET(kapp->activeWindow()))) if(!TDEIO::NetAccess::del(m_configDlg->exportURL(), TQT_TQWIDGET(kapp->activeWindow())))
{ {
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), i18n("Could not delete %1\n" KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), i18n("Could not delete %1\n"
"Please choose another export folder").arg(m_configDlg->exportURL())); "Please choose another export folder").arg(m_configDlg->exportURL()));
@ -270,7 +270,7 @@ void SimpleViewerExport::slotProcess()
.arg(m_configDlg->exportURL())); .arg(m_configDlg->exportURL()));
if(ret == KMessageBox::Yes) if(ret == KMessageBox::Yes)
{ {
KIO::NetAccess::del(m_configDlg->exportURL(), TQT_TQWIDGET(kapp->activeWindow())); TDEIO::NetAccess::del(m_configDlg->exportURL(), TQT_TQWIDGET(kapp->activeWindow()));
} }
} }
@ -286,7 +286,7 @@ bool SimpleViewerExport::createExportDirectories()
m_progressDlg->addedAction(i18n("Creating directories..."), KIPI::StartingMessage); m_progressDlg->addedAction(i18n("Creating directories..."), KIPI::StartingMessage);
KURL root = m_configDlg->exportURL(); KURL root = m_configDlg->exportURL();
if(!KIO::NetAccess::mkdir(root, TQT_TQWIDGET(kapp->activeWindow()))) if(!TDEIO::NetAccess::mkdir(root, TQT_TQWIDGET(kapp->activeWindow())))
{ {
m_progressDlg->addedAction(i18n("Could not create folder '%1'").arg(root.url()), m_progressDlg->addedAction(i18n("Could not create folder '%1'").arg(root.url()),
KIPI::ErrorMessage); KIPI::ErrorMessage);
@ -295,7 +295,7 @@ bool SimpleViewerExport::createExportDirectories()
KURL thumbsDir = m_tempDir->name(); KURL thumbsDir = m_tempDir->name();
thumbsDir.addPath("/thumbs"); thumbsDir.addPath("/thumbs");
if(!KIO::NetAccess::mkdir(thumbsDir, TQT_TQWIDGET(kapp->activeWindow()))) if(!TDEIO::NetAccess::mkdir(thumbsDir, TQT_TQWIDGET(kapp->activeWindow())))
{ {
m_progressDlg->addedAction(i18n("Could not create folder '%1'").arg(thumbsDir.url()), m_progressDlg->addedAction(i18n("Could not create folder '%1'").arg(thumbsDir.url()),
KIPI::ErrorMessage); KIPI::ErrorMessage);
@ -304,7 +304,7 @@ bool SimpleViewerExport::createExportDirectories()
KURL imagesDir = m_tempDir->name(); KURL imagesDir = m_tempDir->name();
imagesDir.addPath("/images"); imagesDir.addPath("/images");
if(!KIO::NetAccess::mkdir(imagesDir, TQT_TQWIDGET(kapp->activeWindow()))) if(!TDEIO::NetAccess::mkdir(imagesDir, TQT_TQWIDGET(kapp->activeWindow())))
{ {
m_progressDlg->addedAction(i18n("Could not create folder '%1'").arg(imagesDir.url()), m_progressDlg->addedAction(i18n("Could not create folder '%1'").arg(imagesDir.url()),
KIPI::ErrorMessage); KIPI::ErrorMessage);
@ -599,7 +599,7 @@ bool SimpleViewerExport::copySimpleViewer()
files.append(dir.absPath() + "/" + *it); files.append(dir.absPath() + "/" + *it);
} }
// TODO: catch errors // TODO: catch errors
KIO::CopyJob *copyJob = KIO::copy(files, m_configDlg->exportURL(), true); TDEIO::CopyJob *copyJob = TDEIO::copy(files, m_configDlg->exportURL(), true);
m_progressDlg->addedAction(i18n("flash files copied..."), KIPI::SuccessMessage); m_progressDlg->addedAction(i18n("flash files copied..."), KIPI::SuccessMessage);
@ -613,7 +613,7 @@ bool SimpleViewerExport::upload()
m_progressDlg->addedAction(i18n("Uploading gallery..."), KIPI::StartingMessage); m_progressDlg->addedAction(i18n("Uploading gallery..."), KIPI::StartingMessage);
if(!KIO::NetAccess::dircopy(m_tempDir->name() + "./", m_configDlg->exportURL(), 0)) if(!TDEIO::NetAccess::dircopy(m_tempDir->name() + "./", m_configDlg->exportURL(), 0))
return false; return false;
m_progressDlg->addedAction(i18n("Gallery uploaded..."), KIPI::SuccessMessage); m_progressDlg->addedAction(i18n("Gallery uploaded..."), KIPI::SuccessMessage);

@ -122,7 +122,7 @@ void SVEDialog::slotHelp()
void SVEDialog::readConfig() void SVEDialog::readConfig()
{ {
KConfig config("kipirc"); TDEConfig config("kipirc");
setThumbnailRows(config.readNumEntry("thumbnailRows", 3)); setThumbnailRows(config.readNumEntry("thumbnailRows", 3));
setThumbnailColumns(config.readNumEntry("thumbnailColumns", 3)); setThumbnailColumns(config.readNumEntry("thumbnailColumns", 3));
@ -145,7 +145,7 @@ void SVEDialog::readConfig()
void SVEDialog::writeConfig() void SVEDialog::writeConfig()
{ {
KConfig config("kipirc"); TDEConfig config("kipirc");
config.writeEntry("thumbnailRows", thumbnailRows()); config.writeEntry("thumbnailRows", thumbnailRows());
config.writeEntry("thumbnailColumns", thumbnailColumns()); config.writeEntry("thumbnailColumns", thumbnailColumns());
config.writeEntry("navPosition", m_navPosition->currentItem()); config.writeEntry("navPosition", m_navPosition->currentItem());

@ -44,7 +44,7 @@ class KLineEdit;
class KIntNumInput; class KIntNumInput;
class KColorButton; class KColorButton;
class KURLRequester; class KURLRequester;
class KConfig; class TDEConfig;
namespace KIPI namespace KIPI
{ {

@ -176,7 +176,7 @@ void Plugin_SlideShow::slotSlideShow()
return; return;
} }
KConfig config("kipirc"); TDEConfig config("kipirc");
bool opengl; bool opengl;
bool shuffle; bool shuffle;

@ -120,7 +120,7 @@ SlideShow::SlideShow(const FileList& fileList, const TQStringList& commentsList,
m_commentsList = commentsList; m_commentsList = commentsList;
m_ImagesHasComments = ImagesHasComments; m_ImagesHasComments = ImagesHasComments;
m_config = new KConfig("kipirc"); m_config = new TDEConfig("kipirc");
m_config->setGroup("SlideShow Settings"); m_config->setGroup("SlideShow Settings");
readSettings(); readSettings();

@ -132,7 +132,7 @@ private:
// config ------------------ // config ------------------
KConfig* m_config; TDEConfig* m_config;
int m_delay; int m_delay;
bool m_printName; bool m_printName;

@ -143,7 +143,7 @@ SlideShowConfig::SlideShowConfig(bool allowSelectedOnly, KIPI::Interface * inter
// Configuration file management // Configuration file management
m_config = new KConfig("kipirc"); m_config = new TDEConfig("kipirc");
m_config->setGroup("SlideShow Settings"); m_config->setGroup("SlideShow Settings");
readSettings(); readSettings();
@ -607,7 +607,7 @@ void SlideShowConfig::slotImagesFilesSelected( TQListBoxItem *item )
if ( m_thumbJob ) delete m_thumbJob; if ( m_thumbJob ) delete m_thumbJob;
m_thumbJob = KIO::filePreview( url, m_ImageLabel->width() ); m_thumbJob = TDEIO::filePreview( url, m_ImageLabel->width() );
connect(m_thumbJob, TQT_SIGNAL(gotPreview(const KFileItem*, const TQPixmap&)), connect(m_thumbJob, TQT_SIGNAL(gotPreview(const KFileItem*, const TQPixmap&)),
TQT_SLOT(slotGotPreview(const KFileItem*, const TQPixmap&))); TQT_SLOT(slotGotPreview(const KFileItem*, const TQPixmap&)));

@ -106,12 +106,12 @@ private:
uint m_cacheSize; uint m_cacheSize;
KConfig* m_config; TDEConfig* m_config;
TQString m_effectName; TQString m_effectName;
TQString m_effectNameGL; TQString m_effectNameGL;
KIO::PreviewJob* m_thumbJob; TDEIO::PreviewJob* m_thumbJob;
KURL::List* m_urlList; KURL::List* m_urlList;
KIPI::Interface* m_interface; KIPI::Interface* m_interface;

@ -98,7 +98,7 @@ SlideShowGL::SlideShowGL(const TQValueList<TQPair<TQString, int> >& fileList,
m_imagesHasComments = ImagesHasComments; m_imagesHasComments = ImagesHasComments;
m_config = new KConfig("kipirc"); m_config = new TDEConfig("kipirc");
m_config->setGroup("SlideShow Settings"); m_config->setGroup("SlideShow Settings");
readSettings(); readSettings();

@ -75,7 +75,7 @@ namespace KIPISlideShowPlugin
// config ------------------ // config ------------------
KConfig* m_config; TDEConfig* m_config;
int m_delay; int m_delay;
TQString m_effectName; TQString m_effectName;

@ -168,7 +168,7 @@ namespace KIPISlideShowPlugin
srand(TQTime::currentTime().msec()); srand(TQTime::currentTime().msec());
m_config = new KConfig("kipirc"); m_config = new TDEConfig("kipirc");
m_config->setGroup("SlideShow Settings"); m_config->setGroup("SlideShow Settings");
readSettings(); readSettings();

@ -157,7 +157,7 @@ namespace KIPISlideShowPlugin
int m_deskWidth; int m_deskWidth;
int m_deskHeight; int m_deskHeight;
KConfig* m_config; TDEConfig* m_config;
bool m_imagesHasComments; bool m_imagesHasComments;
TQStringList m_commentsList; TQStringList m_commentsList;

@ -128,7 +128,7 @@ GalleryWindow::GalleryWindow(KIPI::Interface* interface, TQWidget *parent, Galle
connect(m_addPhotoBtn, TQT_SIGNAL(clicked()), TQT_SLOT( slotAddPhotos())); connect(m_addPhotoBtn, TQT_SIGNAL(clicked()), TQT_SLOT( slotAddPhotos()));
// read config // read config
KConfig config("kipirc"); TDEConfig config("kipirc");
config.setGroup("GallerySync Settings"); config.setGroup("GallerySync Settings");
m_talker = new GalleryTalker( this ); m_talker = new GalleryTalker( this );
@ -165,7 +165,7 @@ GalleryWindow::GalleryWindow(KIPI::Interface* interface, TQWidget *parent, Galle
GalleryWindow::~GalleryWindow() GalleryWindow::~GalleryWindow()
{ {
// write config // write config
KConfig config("kipirc"); TDEConfig config("kipirc");
config.setGroup("GallerySync Settings"); config.setGroup("GallerySync Settings");
config.writeEntry("Resize", m_resizeCheckBox->isChecked()); config.writeEntry("Resize", m_resizeCheckBox->isChecked());
config.writeEntry("Maximum Width", m_dimensionSpinBox->value()); config.writeEntry("Maximum Width", m_dimensionSpinBox->value());

@ -23,7 +23,7 @@
namespace KIPISyncPlugin namespace KIPISyncPlugin
{ {
Sink::Sink(unsigned int sinkId, TQString name, KConfig*, KWallet::Wallet*) Sink::Sink(unsigned int sinkId, TQString name, TDEConfig*, KWallet::Wallet*)
: mSinkId(sinkId), : mSinkId(sinkId),
mName(name) mName(name)
{ {
@ -80,7 +80,7 @@ void Sink::asTQListViewItem(TQListView* pParent)
*/ */
// Pretend sink (just for testin the structure - will be removed!) // Pretend sink (just for testin the structure - will be removed!)
Sink2::Sink2(unsigned int sinkId, TQString name, KConfig* pConfig, KWallet::Wallet* pWallet) Sink2::Sink2(unsigned int sinkId, TQString name, TDEConfig* pConfig, KWallet::Wallet* pWallet)
: Sink(sinkId, name, pConfig, pWallet) : Sink(sinkId, name, pConfig, pWallet)
{ {
mName = "Sink2"; mName = "Sink2";
@ -95,7 +95,7 @@ KIPI2::CollectionList* Sink2::getCollections()
return (KIPI2::CollectionList*) NULL; return (KIPI2::CollectionList*) NULL;
} }
void Sink2::Save(KConfig*, KWallet::Wallet*) void Sink2::Save(TDEConfig*, KWallet::Wallet*)
{ {
} }

@ -41,7 +41,7 @@ namespace KIPISyncPlugin
class Sink : public KIPI2::Interface class Sink : public KIPI2::Interface
{ {
public: public:
Sink(unsigned int sinkId, TQString name, KConfig* pConfig, KWallet::Wallet* pWallet); Sink(unsigned int sinkId, TQString name, TDEConfig* pConfig, KWallet::Wallet* pWallet);
unsigned int SinkId(); unsigned int SinkId();
@ -56,7 +56,7 @@ public:
virtual const KIPI2::CollectionList* getCollections() = 0; virtual const KIPI2::CollectionList* getCollections() = 0;
virtual void Save(KConfig* pConfig, KWallet::Wallet* pWallet) = 0; virtual void Save(TDEConfig* pConfig, KWallet::Wallet* pWallet) = 0;
// As some Sinks are remote, we have the concept of connect/disconnect // As some Sinks are remote, we have the concept of connect/disconnect
virtual bool Connect() { return true; }; virtual bool Connect() { return true; };
@ -77,11 +77,11 @@ protected:
class Sink2 : Sink class Sink2 : Sink
{ {
public: public:
Sink2(unsigned int sinkId, TQString name, KConfig* pConfig, KWallet::Wallet* pWallet); Sink2(unsigned int sinkId, TQString name, TDEConfig* pConfig, KWallet::Wallet* pWallet);
TQString Type(); TQString Type();
TQString TypeDescription(); TQString TypeDescription();
KIPI2::CollectionList* getCollections(); KIPI2::CollectionList* getCollections();
void Save(KConfig* pConfig, KWallet::Wallet* pWallet); void Save(TDEConfig* pConfig, KWallet::Wallet* pWallet);
}; };

@ -35,7 +35,7 @@ bool SinkFactory::Register(TQString type, SinkProxy* pSinkProxy)
} }
// The main creation method // The main creation method
Sink* SinkFactory::Create(TQString type, unsigned int sinkId, TQString name, KConfig* pConfig, KWallet::Wallet* pWallet) Sink* SinkFactory::Create(TQString type, unsigned int sinkId, TQString name, TDEConfig* pConfig, KWallet::Wallet* pWallet)
{ {
if (!mSinkProxies.contains(type)) if (!mSinkProxies.contains(type))
return NULL; return NULL;

@ -21,7 +21,7 @@
#include <tqmap.h> #include <tqmap.h>
class TQListView; class TQListView;
class KConfig; class TDEConfig;
namespace KWallet namespace KWallet
{ {
class Wallet; class Wallet;
@ -35,13 +35,13 @@ class Sink;
// Create a templated creator function to allow our "sinks" to // Create a templated creator function to allow our "sinks" to
// register themselves with the factory. // register themselves with the factory.
template <class T> template <class T>
Sink* SinkCreator(unsigned int sinkId, TQString name, KConfig* pConfig, KWallet::Wallet* pWallet) Sink* SinkCreator(unsigned int sinkId, TQString name, TDEConfig* pConfig, KWallet::Wallet* pWallet)
{ {
return (Sink*) new T(sinkId, name, pConfig, pWallet); return (Sink*) new T(sinkId, name, pConfig, pWallet);
} }
// Define a type that is a pointer to the templated function above. // Define a type that is a pointer to the templated function above.
typedef Sink* SinkProxy(unsigned int sinkId, TQString name, KConfig* pConfig, KWallet::Wallet* pWallet); typedef Sink* SinkProxy(unsigned int sinkId, TQString name, TDEConfig* pConfig, KWallet::Wallet* pWallet);
// And define a type that is a Map of names to creator functions. // And define a type that is a Map of names to creator functions.
typedef TQMap<TQString, SinkProxy*> SinkMap; typedef TQMap<TQString, SinkProxy*> SinkMap;
@ -51,7 +51,7 @@ class SinkFactory
{ {
public: public:
static bool Register(TQString name, SinkProxy* pSinkProxy); static bool Register(TQString name, SinkProxy* pSinkProxy);
static Sink* Create(TQString name, unsigned int sinkId, TQString name, KConfig* pConfig, KWallet::Wallet* pWallet); static Sink* Create(TQString name, unsigned int sinkId, TQString name, TDEConfig* pConfig, KWallet::Wallet* pWallet);
private: private:
static SinkMap mSinkProxies; static SinkMap mSinkProxies;

@ -83,7 +83,7 @@ Sinks::Sinks()
#endif #endif
// Read config // Read config
KConfig config("kipirc"); TDEConfig config("kipirc");
config.setGroup("Sync Settings"); config.setGroup("Sync Settings");
TQValueList<int> sink_ids = config.readIntListEntry("Sinks"); TQValueList<int> sink_ids = config.readIntListEntry("Sinks");
@ -145,7 +145,7 @@ void Sinks::Remove(Sink* pSink)
void Sinks::Save() void Sinks::Save()
{ {
TQValueList<int> sink_ids; TQValueList<int> sink_ids;
KConfig config("kipirc"); TDEConfig config("kipirc");
config.deleteGroup("Sync Sinks"); config.deleteGroup("Sync Sinks");
config.setGroup("Sync Sinks"); config.setGroup("Sync Sinks");

@ -44,7 +44,7 @@
namespace KIPISyncPlugin namespace KIPISyncPlugin
{ {
GallerySink::GallerySink(unsigned int sinkId, TQString name, KConfig* pConfig, KWallet::Wallet* pWallet, GalleryVersion version) GallerySink::GallerySink(unsigned int sinkId, TQString name, TDEConfig* pConfig, KWallet::Wallet* pWallet, GalleryVersion version)
: Sink(sinkId, name, pConfig, pWallet), : Sink(sinkId, name, pConfig, pWallet),
mVersion(version), mVersion(version),
mAuthToken(""), mAuthToken(""),
@ -70,7 +70,7 @@ const KIPI2::CollectionList* GallerySink::getCollections()
return NULL; return NULL;
} }
void GallerySink::Save(KConfig* pConfig, KWallet::Wallet* pWallet) void GallerySink::Save(TDEConfig* pConfig, KWallet::Wallet* pWallet)
{ {
pConfig->writeEntry(TQString("Name%1").arg(mSinkId), mName); pConfig->writeEntry(TQString("Name%1").arg(mSinkId), mName);
pConfig->writeEntry(TQString("Type%1").arg(mSinkId), Type()); pConfig->writeEntry(TQString("Type%1").arg(mSinkId), Type());
@ -97,13 +97,13 @@ bool GallerySink::Connect()
form.addPair("uname", mUsername); form.addPair("uname", mUsername);
form.addPair("password", mPassword); form.addPair("password", mPassword);
KIO::TransferJob* job = KIO::http_post(mURL, form.formData(), false); TDEIO::TransferJob* job = TDEIO::http_post(mURL, form.formData(), false);
job->addMetaData("content-type", form.contentType() ); job->addMetaData("content-type", form.contentType() );
job->addMetaData("cookies", "manual"); job->addMetaData("cookies", "manual");
connect(job, TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)), connect(job, TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)),
TQT_SLOT(data(KIO::Job*, const TQByteArray&))); TQT_SLOT(data(TDEIO::Job*, const TQByteArray&)));
connect(job, TQT_SIGNAL(result(KIO::Job *)), connect(job, TQT_SIGNAL(result(TDEIO::Job *)),
TQT_SLOT(slotResult(KIO::Job *))); TQT_SLOT(slotResult(TDEIO::Job *)));
mState = GE_LOGIN; mState = GE_LOGIN;
mpJob = job; mpJob = job;
@ -122,14 +122,14 @@ void GallerySink::listAlbums()
form.addPair("cmd", task); form.addPair("cmd", task);
form.addPair("protocol_version", "2.3"); form.addPair("protocol_version", "2.3");
KIO::TransferJob* job = KIO::http_post(m_url, form.formData(), false); TDEIO::TransferJob* job = TDEIO::http_post(m_url, form.formData(), false);
job->addMetaData("content-type", form.contentType() ); job->addMetaData("content-type", form.contentType() );
job->addMetaData("cookies", "manual"); job->addMetaData("cookies", "manual");
job->addMetaData("setcookies", m_cookie); job->addMetaData("setcookies", m_cookie);
connect(job, TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)), connect(job, TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)),
TQT_SLOT(data(KIO::Job*, const TQByteArray&))); TQT_SLOT(data(TDEIO::Job*, const TQByteArray&)));
connect(job, TQT_SIGNAL(result(KIO::Job *)), connect(job, TQT_SIGNAL(result(TDEIO::Job *)),
TQT_SLOT(slotResult(KIO::Job *))); TQT_SLOT(slotResult(TDEIO::Job *)));
mState = GE_LISTALBUMS; mState = GE_LISTALBUMS;
mpJob = job; mpJob = job;
@ -151,14 +151,14 @@ void GallerySink::listPhotos( const TQString& albumName )
form.addPair("protocol_version", "2.3"); form.addPair("protocol_version", "2.3");
form.addPair("set_albumName", albumName); form.addPair("set_albumName", albumName);
KIO::TransferJob* job = KIO::http_post(m_url, form.formData(), false); TDEIO::TransferJob* job = TDEIO::http_post(m_url, form.formData(), false);
job->addMetaData("content-type", form.contentType() ); job->addMetaData("content-type", form.contentType() );
job->addMetaData("cookies", "manual"); job->addMetaData("cookies", "manual");
job->addMetaData("setcookies", m_cookie); job->addMetaData("setcookies", m_cookie);
connect(job, TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)), connect(job, TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)),
TQT_SLOT(data(KIO::Job*, const TQByteArray&))); TQT_SLOT(data(TDEIO::Job*, const TQByteArray&)));
connect(job, TQT_SIGNAL(result(KIO::Job *)), connect(job, TQT_SIGNAL(result(TDEIO::Job *)),
TQT_SLOT(slotResult(KIO::Job *))); TQT_SLOT(slotResult(TDEIO::Job *)));
mState = GE_LISTPHOTOS; mState = GE_LISTPHOTOS;
mpJob = job; mpJob = job;
@ -189,14 +189,14 @@ void GallerySink::createAlbum( const TQString& parentAlbumName,
if (!albumCaption.isEmpty()) if (!albumCaption.isEmpty())
form.addPair("newAlbumDesc", albumCaption); form.addPair("newAlbumDesc", albumCaption);
KIO::TransferJob* job = KIO::http_post(m_url, form.formData(), false); TDEIO::TransferJob* job = TDEIO::http_post(m_url, form.formData(), false);
job->addMetaData("content-type", form.contentType() ); job->addMetaData("content-type", form.contentType() );
job->addMetaData("cookies", "manual"); job->addMetaData("cookies", "manual");
job->addMetaData("setcookies", m_cookie); job->addMetaData("setcookies", m_cookie);
connect(job, TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)), connect(job, TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)),
TQT_SLOT(data(KIO::Job*, const TQByteArray&))); TQT_SLOT(data(TDEIO::Job*, const TQByteArray&)));
connect(job, TQT_SIGNAL(result(KIO::Job *)), connect(job, TQT_SIGNAL(result(TDEIO::Job *)),
TQT_SLOT(slotResult(KIO::Job *))); TQT_SLOT(slotResult(TDEIO::Job *)));
mState = GE_CREATEALBUM; mState = GE_CREATEALBUM;
mpJob = job; mpJob = job;
@ -256,14 +256,14 @@ bool GallerySink::addPhoto( const TQString& albumName,
if (!form.addFile(path, display_filename)) if (!form.addFile(path, display_filename))
return false; return false;
KIO::TransferJob* job = KIO::http_post(m_url, form.formData(), false); TDEIO::TransferJob* job = TDEIO::http_post(m_url, form.formData(), false);
job->addMetaData("content-type", form.contentType()); job->addMetaData("content-type", form.contentType());
job->addMetaData("cookies", "manual"); job->addMetaData("cookies", "manual");
job->addMetaData("setcookies", m_cookie); job->addMetaData("setcookies", m_cookie);
connect(job, TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)), connect(job, TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)),
TQT_SLOT(data(KIO::Job*, const TQByteArray&))); TQT_SLOT(data(TDEIO::Job*, const TQByteArray&)));
connect(job, TQT_SIGNAL(result(KIO::Job *)), connect(job, TQT_SIGNAL(result(TDEIO::Job *)),
TQT_SLOT(slotResult(KIO::Job *))); TQT_SLOT(slotResult(TDEIO::Job *)));
mState = GE_ADDPHOTO; mState = GE_ADDPHOTO;
mpJob = job; mpJob = job;
@ -282,7 +282,7 @@ void GallerySink::cancel()
} }
} }
void GallerySink::data(KIO::Job*, const TQByteArray& data) void GallerySink::data(TDEIO::Job*, const TQByteArray& data)
{ {
if (data.isEmpty()) if (data.isEmpty())
return; return;
@ -292,7 +292,7 @@ void GallerySink::data(KIO::Job*, const TQByteArray& data)
memcpy(mBuffer.data()+oldSize, data.data(), data.size()); memcpy(mBuffer.data()+oldSize, data.data(), data.size());
} }
void GallerySink::slotResult(KIO::Job *job) void GallerySink::slotResult(TDEIO::Job *job)
{ {
mpJob = 0; mpJob = 0;
emit signalBusy( false ); emit signalBusy( false );

@ -26,7 +26,7 @@
#include "../../sink.h" #include "../../sink.h"
#include "galleryform.h" #include "galleryform.h"
namespace KIO namespace TDEIO
{ {
class Job; class Job;
} }
@ -51,12 +51,12 @@ public:
GE_ADDPHOTO GE_ADDPHOTO
}; };
GallerySink(unsigned int sinkId, TQString name, KConfig* pConfig, KWallet::Wallet* pWallet, GalleryVersion version); GallerySink(unsigned int sinkId, TQString name, TDEConfig* pConfig, KWallet::Wallet* pWallet, GalleryVersion version);
~GallerySink(); ~GallerySink();
const KIPI2::CollectionList* getCollections(); const KIPI2::CollectionList* getCollections();
void Save(KConfig* pConfig, KWallet::Wallet* pWallet); void Save(TDEConfig* pConfig, KWallet::Wallet* pWallet);
bool Connect(); bool Connect();
@ -90,7 +90,7 @@ private:
State mState; State mState;
TQString m_cookie; TQString m_cookie;
KURL m_url; KURL m_url;
KIO::Job* mpJob; TDEIO::Job* mpJob;
bool m_loggedIn; bool m_loggedIn;
TQByteArray mBuffer; TQByteArray mBuffer;
/* /*
@ -110,8 +110,8 @@ signals:
void signalAddPhotoFailed( const TQString& msg ); void signalAddPhotoFailed( const TQString& msg );
private slots: private slots:
void data(KIO::Job *job, const TQByteArray &data); void data(TDEIO::Job *job, const TQByteArray &data);
void slotResult (KIO::Job *job); void slotResult (TDEIO::Job *job);
*/ */
}; };

@ -319,7 +319,7 @@ void TimeAdjustDialog::slotCancel()
void TimeAdjustDialog::readSettings() void TimeAdjustDialog::readSettings()
{ {
KConfig config("kipirc"); TDEConfig config("kipirc");
config.setGroup("Time Adjust Settings"); config.setGroup("Time Adjust Settings");
int adjType = config.readNumEntry("Adjustment Type", 0); // add by default. int adjType = config.readNumEntry("Adjustment Type", 0); // add by default.
@ -338,7 +338,7 @@ void TimeAdjustDialog::readSettings()
void TimeAdjustDialog::saveSettings() void TimeAdjustDialog::saveSettings()
{ {
KConfig config("kipirc"); TDEConfig config("kipirc");
config.setGroup("Time Adjust Settings"); config.setGroup("Time Adjust Settings");
int adjType = 0; // add int adjType = 0; // add

@ -247,9 +247,9 @@ void Plugin_WallPaper::setWallpaper(int layout)
if (path.isNull()) return; if (path.isNull()) return;
#if TDE_VERSION > 0x30200 #if TDE_VERSION > 0x30200
KIO::NetAccess::download(url, path, 0L); TDEIO::NetAccess::download(url, path, 0L);
#else #else
KIO::NetAccess::download(url, path); TDEIO::NetAccess::download(url, path);
#endif #endif
} }

Loading…
Cancel
Save