summaryrefslogtreecommitdiffstats
path: root/kbugbuster
diff options
context:
space:
mode:
Diffstat (limited to 'kbugbuster')
-rw-r--r--kbugbuster/backend/bugcommand.cpp22
-rw-r--r--kbugbuster/backend/bugcommand.h26
-rw-r--r--kbugbuster/backend/bugjob.cpp28
-rw-r--r--kbugbuster/backend/bugjob.h10
-rw-r--r--kbugbuster/backend/bugserver.cpp4
-rw-r--r--kbugbuster/backend/bugserver.h4
-rw-r--r--kbugbuster/backend/bugserverconfig.cpp4
-rw-r--r--kbugbuster/backend/bugserverconfig.h6
-rw-r--r--kbugbuster/backend/bugsystem.cpp4
-rw-r--r--kbugbuster/backend/bugsystem.h6
-rw-r--r--kbugbuster/backend/kbbprefs.cpp2
-rw-r--r--kbugbuster/backend/kbbprefs.h2
-rw-r--r--kbugbuster/gui/kbbmainwindow.cpp2
-rw-r--r--kbugbuster/gui/loadallbugsdlg.cpp2
-rw-r--r--kbugbuster/gui/loadallbugsdlg.h4
-rw-r--r--kbugbuster/kresources/kcalresource.cpp22
-rw-r--r--kbugbuster/kresources/kcalresource.h18
17 files changed, 83 insertions, 83 deletions
diff --git a/kbugbuster/backend/bugcommand.cpp b/kbugbuster/backend/bugcommand.cpp
index 25e08184..f8b55ac9 100644
--- a/kbugbuster/backend/bugcommand.cpp
+++ b/kbugbuster/backend/bugcommand.cpp
@@ -14,7 +14,7 @@ TQString BugCommand::details()
return TQString();
}
-BugCommand *BugCommand::load( KConfig *config, const TQString &type )
+BugCommand *BugCommand::load( TDEConfig *config, const TQString &type )
{
TQString bugNumber = config->group();
// ### this sucks. we better let Bug implement proper persistance,
@@ -90,7 +90,7 @@ TQString BugCommandClose::details() const
return m_message;
}
-void BugCommandClose::save( KConfig *config )
+void BugCommandClose::save( TDEConfig *config )
{
config->writeEntry( "Close",m_message );
}
@@ -107,7 +107,7 @@ TQString BugCommandCloseSilently::name()
return i18n("Close Silently");
}
-void BugCommandCloseSilently::save( KConfig *config )
+void BugCommandCloseSilently::save( TDEConfig *config )
{
config->writeEntry( "CloseSilently", true );
}
@@ -124,7 +124,7 @@ TQString BugCommandReopen::name()
return i18n("Reopen");
}
-void BugCommandReopen::save( KConfig *config )
+void BugCommandReopen::save( TDEConfig *config )
{
config->writeEntry( "Reopen", true );
}
@@ -146,7 +146,7 @@ TQString BugCommandRetitle::details() const
return m_title;
}
-void BugCommandRetitle::save( KConfig *config )
+void BugCommandRetitle::save( TDEConfig *config )
{
config->writeEntry( "Retitle", m_title );
}
@@ -168,7 +168,7 @@ TQString BugCommandMerge::details() const
return m_bugNumbers.join(", ");
}
-void BugCommandMerge::save( KConfig *config )
+void BugCommandMerge::save( TDEConfig *config )
{
config->writeEntry( "Merge", m_bugNumbers );
}
@@ -185,7 +185,7 @@ TQString BugCommandUnmerge::name()
return i18n("Unmerge");
}
-void BugCommandUnmerge::save( KConfig *config )
+void BugCommandUnmerge::save( TDEConfig *config )
{
config->writeEntry( "Unmerge", true );
}
@@ -234,7 +234,7 @@ TQString BugCommandReply::details() const
return m_message;
}
-void BugCommandReply::save( KConfig *config )
+void BugCommandReply::save( TDEConfig *config )
{
config->writeEntry( "Reply", m_message );
#if 0
@@ -264,7 +264,7 @@ TQString BugCommandReplyPrivate::details() const
return m_message;
}
-void BugCommandReplyPrivate::save( KConfig *config )
+void BugCommandReplyPrivate::save( TDEConfig *config )
{
TQStringList args;
args << m_address;
@@ -289,7 +289,7 @@ TQString BugCommandSeverity::details() const
return m_severity;
}
-void BugCommandSeverity::save( KConfig *config )
+void BugCommandSeverity::save( TDEConfig *config )
{
config->writeEntry( "Severity", m_severity );
}
@@ -311,7 +311,7 @@ TQString BugCommandReassign::details() const
return m_package;
}
-void BugCommandReassign::save( KConfig *config )
+void BugCommandReassign::save( TDEConfig *config )
{
config->writeEntry( "Reassign", m_package );
}
diff --git a/kbugbuster/backend/bugcommand.h b/kbugbuster/backend/bugcommand.h
index 9f68fb2e..e293517c 100644
--- a/kbugbuster/backend/bugcommand.h
+++ b/kbugbuster/backend/bugcommand.h
@@ -7,7 +7,7 @@
#include "bug.h"
#include "package.h"
-class KConfig;
+class TDEConfig;
class BugCommand {
public:
@@ -31,8 +31,8 @@ class BugCommand {
virtual TQString type() const { return TQString(); }
- virtual void save( KConfig * ) = 0;
- static BugCommand *load( KConfig *, const TQString &type );
+ virtual void save( TDEConfig * ) = 0;
+ static BugCommand *load( TDEConfig *, const TQString &type );
protected:
Bug m_bug;
@@ -53,7 +53,7 @@ class BugCommandClose : public BugCommand {
TQString type() const { return TQString::fromLatin1("Close"); }
- void save( KConfig * );
+ void save( TDEConfig * );
private:
TQString m_message;
@@ -70,7 +70,7 @@ class BugCommandCloseSilently : public BugCommand {
TQString type() const { return TQString::fromLatin1("CloseSilently"); }
- void save( KConfig * );
+ void save( TDEConfig * );
};
class BugCommandReopen : public BugCommand {
@@ -84,7 +84,7 @@ class BugCommandReopen : public BugCommand {
TQString type() const { return TQString::fromLatin1("Reopen"); }
- void save( KConfig * );
+ void save( TDEConfig * );
};
class BugCommandRetitle : public BugCommand {
@@ -99,7 +99,7 @@ class BugCommandRetitle : public BugCommand {
TQString type() const { return TQString::fromLatin1("Retitle"); }
- void save( KConfig * );
+ void save( TDEConfig * );
private:
TQString m_title;
@@ -117,7 +117,7 @@ class BugCommandMerge : public BugCommand {
TQString type() const { return TQString::fromLatin1("Merge"); }
- void save( KConfig * );
+ void save( TDEConfig * );
private:
TQStringList m_bugNumbers;
@@ -132,7 +132,7 @@ class BugCommandUnmerge : public BugCommand {
TQString type() const { return TQString::fromLatin1("Unmerge"); }
- void save( KConfig * );
+ void save( TDEConfig * );
TQString controlString() const;
};
@@ -150,7 +150,7 @@ class BugCommandReply : public BugCommand {
TQString type() const { return TQString::fromLatin1("Reply"); }
- void save( KConfig * );
+ void save( TDEConfig * );
private:
TQString m_message;
@@ -171,7 +171,7 @@ class BugCommandReplyPrivate : public BugCommand {
TQString type() const { return TQString::fromLatin1("ReplyPrivate"); }
- void save( KConfig * );
+ void save( TDEConfig * );
private:
TQString m_address;
@@ -190,7 +190,7 @@ class BugCommandSeverity : public BugCommand {
TQString controlString() const;
- void save( KConfig * );
+ void save( TDEConfig * );
private:
TQString m_severity;
@@ -208,7 +208,7 @@ class BugCommandReassign : public BugCommand {
TQString controlString() const;
- void save( KConfig * );
+ void save( TDEConfig * );
private:
TQString m_package;
diff --git a/kbugbuster/backend/bugjob.cpp b/kbugbuster/backend/bugjob.cpp
index 1d13913b..90828ceb 100644
--- a/kbugbuster/backend/bugjob.cpp
+++ b/kbugbuster/backend/bugjob.cpp
@@ -28,19 +28,19 @@ void BugJob::start( const KURL &url )
// ### obey post, if necessary
- KIO::Job *job = KIO::get( url, true /*always 'reload=true', we have our own cache*/, false );
-
- connect( job, TQT_SIGNAL( result( KIO::Job * ) ),
- this, TQT_SLOT( ioResult( KIO::Job * ) ) );
- connect( job, TQT_SIGNAL( data( KIO::Job *, const TQByteArray & ) ),
- this, TQT_SLOT( ioData( KIO::Job *, const TQByteArray & ) ) );
- connect( job, TQT_SIGNAL( infoMessage( KIO::Job *, const TQString & ) ),
- this, TQT_SLOT( ioInfoMessage( KIO::Job *, const TQString & ) ) );
- connect( job, TQT_SIGNAL( percent( KIO::Job *, unsigned long ) ),
- this, TQT_SLOT( ioInfoPercent( KIO::Job *, unsigned long ) ) );
+ TDEIO::Job *job = TDEIO::get( url, true /*always 'reload=true', we have our own cache*/, false );
+
+ connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ),
+ this, TQT_SLOT( ioResult( TDEIO::Job * ) ) );
+ connect( job, TQT_SIGNAL( data( TDEIO::Job *, const TQByteArray & ) ),
+ this, TQT_SLOT( ioData( TDEIO::Job *, const TQByteArray & ) ) );
+ connect( job, TQT_SIGNAL( infoMessage( TDEIO::Job *, const TQString & ) ),
+ this, TQT_SLOT( ioInfoMessage( TDEIO::Job *, const TQString & ) ) );
+ connect( job, TQT_SIGNAL( percent( TDEIO::Job *, unsigned long ) ),
+ this, TQT_SLOT( ioInfoPercent( TDEIO::Job *, unsigned long ) ) );
}
-void BugJob::ioResult( KIO::Job *job )
+void BugJob::ioResult( TDEIO::Job *job )
{
m_error = job->error();
m_errorText = job->errorText();
@@ -71,7 +71,7 @@ void BugJob::ioResult( KIO::Job *job )
delete this;
}
-void BugJob::ioData( KIO::Job *, const TQByteArray &data )
+void BugJob::ioData( TDEIO::Job *, const TQByteArray &data )
{
unsigned int start = m_data.size();
@@ -79,13 +79,13 @@ void BugJob::ioData( KIO::Job *, const TQByteArray &data )
memcpy( m_data.data() + start, data.data(), data.size() );
}
-void BugJob::ioInfoMessage( KIO::Job *, const TQString &_text )
+void BugJob::ioInfoMessage( TDEIO::Job *, const TQString &_text )
{
TQString text = _text;
emit infoMessage( text );
}
-void BugJob::ioInfoPercent( KIO::Job *, unsigned long percent )
+void BugJob::ioInfoPercent( TDEIO::Job *, unsigned long percent )
{
emit infoPercent( percent );
}
diff --git a/kbugbuster/backend/bugjob.h b/kbugbuster/backend/bugjob.h
index 68e57841..981283db 100644
--- a/kbugbuster/backend/bugjob.h
+++ b/kbugbuster/backend/bugjob.h
@@ -5,7 +5,7 @@
#include "bugserver.h"
-class BugJob : public KIO::Job
+class BugJob : public TDEIO::Job
{
Q_OBJECT
@@ -27,13 +27,13 @@ class BugJob : public KIO::Job
virtual void process( const TQByteArray &data ) = 0;
private slots:
- void ioResult( KIO::Job *job );
+ void ioResult( TDEIO::Job *job );
- void ioData( KIO::Job *job, const TQByteArray &data );
+ void ioData( TDEIO::Job *job, const TQByteArray &data );
- void ioInfoMessage( KIO::Job *job, const TQString &text );
+ void ioInfoMessage( TDEIO::Job *job, const TQString &text );
- void ioInfoPercent( KIO::Job *job, unsigned long percent );
+ void ioInfoPercent( TDEIO::Job *job, unsigned long percent );
private:
TQByteArray m_data;
diff --git a/kbugbuster/backend/bugserver.cpp b/kbugbuster/backend/bugserver.cpp
index 1ad90567..7711212f 100644
--- a/kbugbuster/backend/bugserver.cpp
+++ b/kbugbuster/backend/bugserver.cpp
@@ -195,11 +195,11 @@ Bug::Severity BugServer::bugSeverity( const TQString &str )
}
}
-void BugServer::readConfig( KConfig * /*config*/ )
+void BugServer::readConfig( TDEConfig * /*config*/ )
{
}
-void BugServer::writeConfig( KConfig * /*config*/ )
+void BugServer::writeConfig( TDEConfig * /*config*/ )
{
}
diff --git a/kbugbuster/backend/bugserver.h b/kbugbuster/backend/bugserver.h
index c76b565a..6d6ffdc0 100644
--- a/kbugbuster/backend/bugserver.h
+++ b/kbugbuster/backend/bugserver.h
@@ -70,9 +70,9 @@ class BugServer
Processor *processor() const;
- void readConfig( KConfig * );
+ void readConfig( TDEConfig * );
- void writeConfig( KConfig * );
+ void writeConfig( TDEConfig * );
/**
Queue a new command.
diff --git a/kbugbuster/backend/bugserverconfig.cpp b/kbugbuster/backend/bugserverconfig.cpp
index a09e6c29..203c60a9 100644
--- a/kbugbuster/backend/bugserverconfig.cpp
+++ b/kbugbuster/backend/bugserverconfig.cpp
@@ -111,7 +111,7 @@ TQStringList BugServerConfig::bugzillaVersions()
return v;
}
-void BugServerConfig::readConfig( KConfig *cfg, const TQString &name )
+void BugServerConfig::readConfig( TDEConfig *cfg, const TQString &name )
{
mName = name;
@@ -129,7 +129,7 @@ void BugServerConfig::readConfig( KConfig *cfg, const TQString &name )
mCurrentBug = cfg->readEntry( "CurrentBug" );
}
-void BugServerConfig::writeConfig( KConfig *cfg )
+void BugServerConfig::writeConfig( TDEConfig *cfg )
{
cfg->setGroup( "BugServer " + mName );
diff --git a/kbugbuster/backend/bugserverconfig.h b/kbugbuster/backend/bugserverconfig.h
index 39a34463..5a252573 100644
--- a/kbugbuster/backend/bugserverconfig.h
+++ b/kbugbuster/backend/bugserverconfig.h
@@ -29,7 +29,7 @@
#include <kurl.h>
-class KConfig;
+class TDEConfig;
class BugServerConfig
{
@@ -50,8 +50,8 @@ class BugServerConfig
void setPassword( const TQString &password );
TQString password() const;
- void readConfig( KConfig *, const TQString &name );
- void writeConfig( KConfig * );
+ void readConfig( TDEConfig *, const TQString &name );
+ void writeConfig( TDEConfig * );
static TQStringList bugzillaVersions();
diff --git a/kbugbuster/backend/bugsystem.cpp b/kbugbuster/backend/bugsystem.cpp
index c3dc0cdd..808a45f6 100644
--- a/kbugbuster/backend/bugsystem.cpp
+++ b/kbugbuster/backend/bugsystem.cpp
@@ -373,7 +373,7 @@ TQString BugSystem::lastResponse()
return mLastResponse;
}
-void BugSystem::readConfig( KConfig *config )
+void BugSystem::readConfig( TDEConfig *config )
{
config->setGroup("Servers");
TQStringList servers = config->readListEntry( "Servers" );
@@ -394,7 +394,7 @@ void BugSystem::readConfig( KConfig *config )
setServerList( serverList );
}
-void BugSystem::writeConfig( KConfig *config )
+void BugSystem::writeConfig( TDEConfig *config )
{
TQValueList<BugServer *>::ConstIterator itServer;
TQStringList servers;
diff --git a/kbugbuster/backend/bugsystem.h b/kbugbuster/backend/bugsystem.h
index 9a638675..7becf6b4 100644
--- a/kbugbuster/backend/bugsystem.h
+++ b/kbugbuster/backend/bugsystem.h
@@ -13,7 +13,7 @@
#include <tqmap.h>
#include <tqpair.h>
-class KConfig;
+class TDEConfig;
class BugCommand;
class BugServer;
@@ -80,8 +80,8 @@ class BugSystem : public TQObject
static void saveResponse( const TQByteArray &d );
static TQString lastResponse();
- void readConfig( KConfig * );
- void writeConfig( KConfig * );
+ void readConfig( TDEConfig * );
+ void writeConfig( TDEConfig * );
signals:
void packageListAvailable( const Package::List &pkgs );
diff --git a/kbugbuster/backend/kbbprefs.cpp b/kbugbuster/backend/kbbprefs.cpp
index f6f3a69c..0fa2d5af 100644
--- a/kbugbuster/backend/kbbprefs.cpp
+++ b/kbugbuster/backend/kbbprefs.cpp
@@ -37,7 +37,7 @@
KBBPrefs *KBBPrefs::mInstance = 0;
-KBBPrefs::KBBPrefs() : KConfigSkeleton()
+KBBPrefs::KBBPrefs() : TDEConfigSkeleton()
{
setCurrentGroup("History");
diff --git a/kbugbuster/backend/kbbprefs.h b/kbugbuster/backend/kbbprefs.h
index 87dfacd8..e3e2718d 100644
--- a/kbugbuster/backend/kbbprefs.h
+++ b/kbugbuster/backend/kbbprefs.h
@@ -32,7 +32,7 @@
class TQStringList;
-class KBBPrefs : public KConfigSkeleton
+class KBBPrefs : public TDEConfigSkeleton
{
public:
virtual ~KBBPrefs();
diff --git a/kbugbuster/gui/kbbmainwindow.cpp b/kbugbuster/gui/kbbmainwindow.cpp
index e88d20fb..05e6cc0f 100644
--- a/kbugbuster/gui/kbbmainwindow.cpp
+++ b/kbugbuster/gui/kbbmainwindow.cpp
@@ -360,7 +360,7 @@ void KBBMainWindow::slotListChanges()
void KBBMainWindow::slotSetPercent( unsigned long percent )
{
- // KIO::Job::percent() shouldn't return an unsigned long. - Frerich
+ // TDEIO::Job::percent() shouldn't return an unsigned long. - Frerich
m_progressBar->setProgress( percent );
}
diff --git a/kbugbuster/gui/loadallbugsdlg.cpp b/kbugbuster/gui/loadallbugsdlg.cpp
index c53f8f81..3a5dd65d 100644
--- a/kbugbuster/gui/loadallbugsdlg.cpp
+++ b/kbugbuster/gui/loadallbugsdlg.cpp
@@ -23,7 +23,7 @@
LoadAllBugsDlg::LoadAllBugsDlg( const Package& pkg, const TQString &component )
: TQDialog( 0L, "progressdlg", TRUE )
{
- m_bugLoadingProgress = new KIO::DefaultProgress( this );
+ m_bugLoadingProgress = new TDEIO::DefaultProgress( this );
connect( m_bugLoadingProgress, TQT_SIGNAL( stopped() ),
this, TQT_SLOT( slotStopped() ) );
setCaption( i18n( "Loading All Bugs for Product %1" ).arg( pkg.name() ) );
diff --git a/kbugbuster/gui/loadallbugsdlg.h b/kbugbuster/gui/loadallbugsdlg.h
index 09b20bde..0c55715f 100644
--- a/kbugbuster/gui/loadallbugsdlg.h
+++ b/kbugbuster/gui/loadallbugsdlg.h
@@ -20,7 +20,7 @@
class Package;
class BugDetails;
-namespace KIO { class DefaultProgress; }
+namespace TDEIO { class DefaultProgress; }
class LoadAllBugsDlg : public TQDialog
{
@@ -38,7 +38,7 @@ private:
Bug::List m_bugs;
unsigned int m_processed;
unsigned int m_count;
- KIO::DefaultProgress* m_bugLoadingProgress;
+ TDEIO::DefaultProgress* m_bugLoadingProgress;
};
#endif
diff --git a/kbugbuster/kresources/kcalresource.cpp b/kbugbuster/kresources/kcalresource.cpp
index bbd7ab27..bdad0381 100644
--- a/kbugbuster/kresources/kcalresource.cpp
+++ b/kbugbuster/kresources/kcalresource.cpp
@@ -54,13 +54,13 @@
#include "kcalresource.h"
-KCalResource::KCalResource( const KConfig* config )
+KCalResource::KCalResource( const TDEConfig* config )
: ResourceCached( config ), mLock( 0 )
{
mPrefs = new KBB::ResourcePrefs;
- KConfigSkeletonItem::List items = mPrefs->items();
- KConfigSkeletonItem::List::Iterator it;
+ TDEConfigSkeletonItem::List items = mPrefs->items();
+ TDEConfigSkeletonItem::List::Iterator it;
for( it = items.begin(); it != items.end(); ++it ) {
(*it)->setGroup( identifier() );
}
@@ -93,7 +93,7 @@ void KCalResource::init()
mLock = new KABC::LockNull( true );
- KConfig config( "kbugbusterrc" );
+ TDEConfig config( "kbugbusterrc" );
BugSystem::self()->readConfig( &config );
}
@@ -103,12 +103,12 @@ KBB::ResourcePrefs *KCalResource::prefs()
return mPrefs;
}
-void KCalResource::readConfig( const KConfig * )
+void KCalResource::readConfig( const TDEConfig * )
{
mPrefs->readConfig();
}
-void KCalResource::writeConfig( KConfig *config )
+void KCalResource::writeConfig( TDEConfig *config )
{
kdDebug() << "KCalResource::writeConfig()" << endl;
@@ -225,7 +225,7 @@ void KCalResource::slotBugListAvailable( const Package &, const TQString &,
emit resourceChanged( this );
}
-void KCalResource::slotLoadJobResult( KIO::Job *job )
+void KCalResource::slotLoadJobResult( TDEIO::Job *job )
{
if ( job->error() ) {
job->showErrorDialog( 0 );
@@ -267,9 +267,9 @@ bool KCalResource::doSave()
mCalendar.save( cacheFile() );
- mUploadJob = KIO::file_copy( KURL( cacheFile() ), mUploadUrl, -1, true );
- connect( mUploadJob, TQT_SIGNAL( result( KIO::Job * ) ),
- TQT_SLOT( slotSaveJobResult( KIO::Job * ) ) );
+ mUploadJob = TDEIO::file_copy( KURL( cacheFile() ), mUploadUrl, -1, true );
+ connect( mUploadJob, TQT_SIGNAL( result( TDEIO::Job * ) ),
+ TQT_SLOT( slotSaveJobResult( TDEIO::Job * ) ) );
return true;
}
@@ -279,7 +279,7 @@ bool KCalResource::isSaving()
return mUploadJob;
}
-void KCalResource::slotSaveJobResult( KIO::Job *job )
+void KCalResource::slotSaveJobResult( TDEIO::Job *job )
{
if ( job->error() ) {
job->showErrorDialog( 0 );
diff --git a/kbugbuster/kresources/kcalresource.h b/kbugbuster/kresources/kcalresource.h
index d96fc1e4..cfa4e2a6 100644
--- a/kbugbuster/kresources/kcalresource.h
+++ b/kbugbuster/kresources/kcalresource.h
@@ -36,7 +36,7 @@
#include <bugsystem.h>
-namespace KIO {
+namespace TDEIO {
class FileCopyJob;
class Job;
}
@@ -64,13 +64,13 @@ class KCalResource : public KCal::ResourceCached
enum { ReloadNever, ReloadOnStartup, ReloadOnceADay, ReloadAlways };
/**
- Create resource from configuration information stored in KConfig object.
+ Create resource from configuration information stored in TDEConfig object.
*/
- KCalResource( const KConfig * );
+ KCalResource( const TDEConfig * );
~KCalResource();
- void readConfig( const KConfig *config );
- void writeConfig( KConfig *config );
+ void readConfig( const TDEConfig *config );
+ void writeConfig( TDEConfig *config );
KBB::ResourcePrefs *prefs();
@@ -89,8 +89,8 @@ class KCalResource : public KCal::ResourceCached
void slotBugListAvailable( const Package &, const TQString &,
const Bug::List &bugs );
- void slotLoadJobResult( KIO::Job * );
- void slotSaveJobResult( KIO::Job * );
+ void slotLoadJobResult( TDEIO::Job * );
+ void slotSaveJobResult( TDEIO::Job * );
protected:
bool doOpen();
@@ -112,8 +112,8 @@ class KCalResource : public KCal::ResourceCached
bool mOpen;
- KIO::FileCopyJob *mDownloadJob;
- KIO::FileCopyJob *mUploadJob;
+ TDEIO::FileCopyJob *mDownloadJob;
+ TDEIO::FileCopyJob *mUploadJob;
KABC::Lock *mLock;