summaryrefslogtreecommitdiffstats
path: root/kpilot/conduits/knotes
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kpilot/conduits/knotes
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpilot/conduits/knotes')
-rw-r--r--kpilot/conduits/knotes/knotes-action.cc58
-rw-r--r--kpilot/conduits/knotes/knotes-action.h4
-rw-r--r--kpilot/conduits/knotes/knotes-factory.cc8
-rw-r--r--kpilot/conduits/knotes/knotes-factory.h8
-rw-r--r--kpilot/conduits/knotes/knotes-setup.cc24
-rw-r--r--kpilot/conduits/knotes/knotes-setup.h4
6 files changed, 53 insertions, 53 deletions
diff --git a/kpilot/conduits/knotes/knotes-action.cc b/kpilot/conduits/knotes/knotes-action.cc
index 905e5ef39..ca3291321 100644
--- a/kpilot/conduits/knotes/knotes-action.cc
+++ b/kpilot/conduits/knotes/knotes-action.cc
@@ -29,8 +29,8 @@
#include "options.h"
-#include <qmap.h>
-#include <qtimer.h>
+#include <tqmap.h>
+#include <tqtimer.h>
#include <kapplication.h>
@@ -63,8 +63,8 @@ unsigned long version_conduit_knotes = Pilot::PLUGIN_API;
}
-typedef QString KNoteID_t;
-typedef const QString &KNoteID_pt;
+typedef TQString KNoteID_t;
+typedef const TQString &KNoteID_pt;
class NoteAndMemo
{
@@ -79,21 +79,21 @@ public:
int memo() const { return memoId; } ;
KNoteID_t note() const { return noteId; } ;
inline bool valid() const { return (memoId>0) && (!noteId.isEmpty()) ; } ;
- QString toString() const { return CSL1("<%1,%2>").arg(noteId).arg(memoId); } ;
+ TQString toString() const { return CSL1("<%1,%2>").arg(noteId).arg(memoId); } ;
- static NoteAndMemo findNote(const QValueList<NoteAndMemo> &,KNoteID_pt note);
- static NoteAndMemo findMemo(const QValueList<NoteAndMemo> &,int memo);
+ static NoteAndMemo findNote(const TQValueList<NoteAndMemo> &,KNoteID_pt note);
+ static NoteAndMemo findMemo(const TQValueList<NoteAndMemo> &,int memo);
protected:
KNoteID_t noteId;
int memoId;
} ;
-NoteAndMemo NoteAndMemo::findNote(const QValueList<NoteAndMemo> &l ,KNoteID_pt note)
+NoteAndMemo NoteAndMemo::findNote(const TQValueList<NoteAndMemo> &l ,KNoteID_pt note)
{
FUNCTIONSETUP;
- for (QValueList<NoteAndMemo>::ConstIterator it = l.begin();
+ for (TQValueList<NoteAndMemo>::ConstIterator it = l.begin();
it != l.end();
++it)
{
@@ -103,11 +103,11 @@ NoteAndMemo NoteAndMemo::findNote(const QValueList<NoteAndMemo> &l ,KNoteID_pt n
return NoteAndMemo();
}
-NoteAndMemo NoteAndMemo::findMemo(const QValueList<NoteAndMemo> &l , int memo)
+NoteAndMemo NoteAndMemo::findMemo(const TQValueList<NoteAndMemo> &l , int memo)
{
FUNCTIONSETUP;
- for (QValueList<NoteAndMemo>::ConstIterator it =l.begin();
+ for (TQValueList<NoteAndMemo>::ConstIterator it =l.begin();
it != l.end();
++it)
{
@@ -158,7 +158,7 @@ public:
//KNotesIface_stub *fKNotes;
// The timer for invoking process() to do some more work.
- QTimer *fTimer;
+ TQTimer *fTimer;
// The database we're working with (MemoDB)
// PilotSerialDatabase *fDatabase;
@@ -175,7 +175,7 @@ public:
// We need to translate between the ids that KNotes uses and
// Pilot id's, so we make a list of pairs.
//
- QValueList<NoteAndMemo> fIdList;
+ TQValueList<NoteAndMemo> fIdList;
// Setting to delete a KNote when the corresponding memo
// has been deleted.
@@ -185,7 +185,7 @@ public:
KNotesAction::KNotesAction(KPilotLink *o,
- const char *n, const QStringList &a) :
+ const char *n, const TQStringList &a) :
ConduitAction(o,n ? n : "knotes-conduit",a),
fP(new KNotesActionPrivate)
{
@@ -220,7 +220,7 @@ KNotesAction::KNotesAction(KPilotLink *o,
return true;
}
- QString e;
+ TQString e;
if (!openKNotesResource()) return false;
// Database names seem to be latin1
@@ -233,13 +233,13 @@ KNotesAction::KNotesAction(KPilotLink *o,
return false;
}
- fP->fTimer = new QTimer(this);
+ fP->fTimer = new TQTimer(this);
fActionStatus = Init;
// this is not needed. As it is done in the initstate in process();
// resetIndexes();
- connect(fP->fTimer,SIGNAL(timeout()),SLOT(process()));
+ connect(fP->fTimer,TQT_SIGNAL(timeout()),TQT_SLOT(process()));
fP->fTimer->start(0,false);
return true;
@@ -257,7 +257,7 @@ bool KNotesAction::openKNotesResource()
KConfig korgcfg( locate( "config", CSL1("korganizerrc") ) );
korgcfg.setGroup( "Time & Date" );
- QString tz(korgcfg.readEntry( "TimeZoneId" ) );
+ TQString tz(korgcfg.readEntry( "TimeZoneId" ) );
fP->fNotesResource = new KCal::CalendarLocal(tz);
KURL mURL = KGlobal::dirs()->saveLocation( "data", "knotes/" ) + "notes.ics";
@@ -395,8 +395,8 @@ void KNotesAction::getConfigInfo()
fP->fDeleteNoteForMemo = KNotesConduitSettings::deleteNoteForMemo();
- QValueList<KNoteID_t> notes;
- QValueList<int> memos;
+ TQValueList<KNoteID_t> notes;
+ TQValueList<int> memos;
// Make this match the type of KNoteID_t !
notes=KNotesConduitSettings::noteIds();
@@ -416,8 +416,8 @@ void KNotesAction::getConfigInfo()
setFirstSync( true );
}
- QValueList<KNoteID_t>::ConstIterator iNotes = notes.begin();
- QValueList<int>::ConstIterator iMemos = memos.begin();
+ TQValueList<KNoteID_t>::ConstIterator iNotes = notes.begin();
+ TQValueList<int>::ConstIterator iMemos = memos.begin();
while((iNotes != notes.end()) && (iMemos != memos.end()))
{
@@ -465,7 +465,7 @@ bool KNotesAction::modifyNoteOnPilot()
if (nm.valid())
{
- QString text,title,body;
+ TQString text,title,body;
title = fP->fIndex.data();
body = fP->fKNotes->text(fP->fIndex.key());
if (body.startsWith(title))
@@ -517,7 +517,7 @@ bool KNotesAction::deleteNoteOnPilot()
FUNCTIONSETUP;
/*
- QValueList<NoteAndMemo>::Iterator i = fP->fIdList.begin();
+ TQValueList<NoteAndMemo>::Iterator i = fP->fIdList.begin();
while ( i != fP->fIdList.end() )
{
// TODO DCOP_REMOVE
@@ -732,7 +732,7 @@ int KNotesAction::addNoteToPilot()
<< endl;
#endif
- QString text = j->summary() + CSL1("\n");
+ TQString text = j->summary() + CSL1("\n");
text.append( j->description() );
//TODO DCOP_REMOVAL
//text.append(fP->fKNotes->text(fP->fIndex.key()));
@@ -775,10 +775,10 @@ void KNotesAction::cleanupMemos()
<< endl;
#endif
- QValueList<KNoteID_t> notes;
- QValueList<int> memos;
+ TQValueList<KNoteID_t> notes;
+ TQValueList<int> memos;
- for (QValueList<NoteAndMemo>::ConstIterator i =
+ for (TQValueList<NoteAndMemo>::ConstIterator i =
fP->fIdList.begin();
i!=fP->fIdList.end();
++i)
@@ -846,7 +846,7 @@ void KNotesAction::cleanupMemos()
}
-/* virtual */ QString KNotesAction::statusString() const
+/* virtual */ TQString KNotesAction::statusString() const
{
switch(fActionStatus)
{
diff --git a/kpilot/conduits/knotes/knotes-action.h b/kpilot/conduits/knotes/knotes-action.h
index 695e90747..eb490e0a7 100644
--- a/kpilot/conduits/knotes/knotes-action.h
+++ b/kpilot/conduits/knotes/knotes-action.h
@@ -41,7 +41,7 @@ public:
KNotesAction(
KPilotLink *o,
const char *n = 0L,
- const QStringList &a = QStringList() );
+ const TQStringList &a = TQStringList() );
virtual ~KNotesAction();
enum Status { Init,
@@ -51,7 +51,7 @@ public:
MemosToKNotes,
Cleanup,
Done } ;
- virtual QString statusString() const;
+ virtual TQString statusString() const;
protected:
virtual bool exec();
diff --git a/kpilot/conduits/knotes/knotes-factory.cc b/kpilot/conduits/knotes/knotes-factory.cc
index a919e1ed1..9601e81e5 100644
--- a/kpilot/conduits/knotes/knotes-factory.cc
+++ b/kpilot/conduits/knotes/knotes-factory.cc
@@ -57,7 +57,7 @@ void *init_conduit_knotes()
/* static */ KAboutData *KNotesConduitFactory::fAbout = 0L;
-KNotesConduitFactory::KNotesConduitFactory(QObject *p, const char *n) :
+KNotesConduitFactory::KNotesConduitFactory(TQObject *p, const char *n) :
KLibFactory(p,n)
{
FUNCTIONSETUP;
@@ -85,10 +85,10 @@ KNotesConduitFactory::~KNotesConduitFactory()
KPILOT_DELETE(fAbout);
}
-/* virtual */ QObject *KNotesConduitFactory::createObject( QObject *p,
+/* virtual */ TQObject *KNotesConduitFactory::createObject( TQObject *p,
const char *n,
const char *c,
- const QStringList &a)
+ const TQStringList &a)
{
FUNCTIONSETUP;
@@ -101,7 +101,7 @@ KNotesConduitFactory::~KNotesConduitFactory()
if (qstrcmp(c,"ConduitConfigBase")==0)
{
- QWidget *w = dynamic_cast<QWidget *>(p);
+ TQWidget *w = dynamic_cast<TQWidget *>(p);
if (w)
{
return new KNotesConfigBase(w,0L);
diff --git a/kpilot/conduits/knotes/knotes-factory.h b/kpilot/conduits/knotes/knotes-factory.h
index 94ad44429..02b0f6102 100644
--- a/kpilot/conduits/knotes/knotes-factory.h
+++ b/kpilot/conduits/knotes/knotes-factory.h
@@ -39,7 +39,7 @@ class KNotesConduitFactory : public KLibFactory
Q_OBJECT
public:
- KNotesConduitFactory(QObject * = 0L,const char * = 0L);
+ KNotesConduitFactory(TQObject * = 0L,const char * = 0L);
virtual ~KNotesConduitFactory();
static KAboutData *about() { return fAbout; } ;
@@ -50,10 +50,10 @@ public:
// break its value. We store group and entry keys in here.
protected:
- virtual QObject* createObject( QObject* parent = 0,
+ virtual TQObject* createObject( TQObject* parent = 0,
const char* name = 0,
- const char* classname = "QObject",
- const QStringList &args = QStringList() );
+ const char* classname = "TQObject",
+ const TQStringList &args = TQStringList() );
private:
KInstance *fInstance;
static KAboutData *fAbout;
diff --git a/kpilot/conduits/knotes/knotes-setup.cc b/kpilot/conduits/knotes/knotes-setup.cc
index da8b31c48..1127011ad 100644
--- a/kpilot/conduits/knotes/knotes-setup.cc
+++ b/kpilot/conduits/knotes/knotes-setup.cc
@@ -28,10 +28,10 @@
#include "options.h"
-#include <qtabwidget.h>
-#include <qcheckbox.h>
-#include <qmap.h>
-#include <qtimer.h>
+#include <tqtabwidget.h>
+#include <tqcheckbox.h>
+#include <tqmap.h>
+#include <tqtimer.h>
#include <kapplication.h>
#include <kconfig.h>
@@ -43,19 +43,19 @@
#include "knotesconduitSettings.h"
-KNotesConfigBase::KNotesConfigBase(QWidget *w, const char *n) :
+KNotesConfigBase::KNotesConfigBase(TQWidget *w, const char *n) :
ConduitConfigBase(w,n),
fConfigWidget(0L)
{
fConfigWidget = new KNotesWidget(w);
ConduitConfigBase::addAboutPage(fConfigWidget->tabWidget,KNotesConduitFactory::about());
fWidget = fConfigWidget;
- QObject::connect(fConfigWidget->fDeleteNoteForMemo,SIGNAL(clicked()),
- this,SLOT(modified()));
- QObject::connect(fConfigWidget->fSuppressConfirm,SIGNAL(clicked()),
- this,SLOT(modified()));
- QObject::connect(fConfigWidget->fDeleteNoteForMemo,SIGNAL(toggled(bool)),
- fConfigWidget->fSuppressConfirm,SLOT(setEnabled(bool)));
+ TQObject::connect(fConfigWidget->fDeleteNoteForMemo,TQT_SIGNAL(clicked()),
+ this,TQT_SLOT(modified()));
+ TQObject::connect(fConfigWidget->fSuppressConfirm,TQT_SIGNAL(clicked()),
+ this,TQT_SLOT(modified()));
+ TQObject::connect(fConfigWidget->fDeleteNoteForMemo,TQT_SIGNAL(toggled(bool)),
+ fConfigWidget->fSuppressConfirm,TQT_SLOT(setEnabled(bool)));
fConduitName=i18n("KNotes");
}
@@ -76,7 +76,7 @@ void KNotesConfigBase::load()
unmodified();
}
-/* static */ ConduitConfigBase *KNotesConfigBase::create(QWidget *w, const char *n)
+/* static */ ConduitConfigBase *KNotesConfigBase::create(TQWidget *w, const char *n)
{
return new KNotesConfigBase(w,n);
}
diff --git a/kpilot/conduits/knotes/knotes-setup.h b/kpilot/conduits/knotes/knotes-setup.h
index 9e7603df7..652f22238 100644
--- a/kpilot/conduits/knotes/knotes-setup.h
+++ b/kpilot/conduits/knotes/knotes-setup.h
@@ -36,12 +36,12 @@ class KNotesWidget;
class KNotesConfigBase : public ConduitConfigBase
{
public:
- KNotesConfigBase(QWidget *parent, const char *name);
+ KNotesConfigBase(TQWidget *parent, const char *name);
virtual void commit();
virtual void load();
- static ConduitConfigBase *create(QWidget *p, const char *n);
+ static ConduitConfigBase *create(TQWidget *p, const char *n);
private:
KNotesWidget *fConfigWidget;
} ;