summaryrefslogtreecommitdiffstats
path: root/kpilot/lib/syncAction.cc
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/lib/syncAction.cc
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/lib/syncAction.cc')
-rw-r--r--kpilot/lib/syncAction.cc140
1 files changed, 70 insertions, 70 deletions
diff --git a/kpilot/lib/syncAction.cc b/kpilot/lib/syncAction.cc
index 818503807..d9f539559 100644
--- a/kpilot/lib/syncAction.cc
+++ b/kpilot/lib/syncAction.cc
@@ -34,17 +34,17 @@
#include <pi-socket.h>
#include <pi-dlp.h>
-#include <qtimer.h>
-#include <qvbox.h>
-#include <qlayout.h>
-#include <qcheckbox.h>
-#include <qlabel.h>
-#include <qmessagebox.h>
-#include <qdir.h>
-#include <qfile.h>
-#include <qfileinfo.h>
-#include <qtl.h>
-#include <qstyle.h>
+#include <tqtimer.h>
+#include <tqvbox.h>
+#include <tqlayout.h>
+#include <tqcheckbox.h>
+#include <tqlabel.h>
+#include <tqmessagebox.h>
+#include <tqdir.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
+#include <tqtl.h>
+#include <tqstyle.h>
#include <kdialogbase.h>
#include <kglobal.h>
@@ -57,7 +57,7 @@
SyncAction::SyncAction(KPilotLink *p,
const char *name) :
- QObject(p, name),
+ TQObject(p, name),
fHandle(p),
fParent(0L)
{
@@ -65,9 +65,9 @@ SyncAction::SyncAction(KPilotLink *p,
}
SyncAction::SyncAction(KPilotLink *p,
- QWidget * visibleparent,
+ TQWidget * visibleparent,
const char *name) :
- QObject(p, name),
+ TQObject(p, name),
fHandle(p),
fParent(visibleparent)
{
@@ -78,12 +78,12 @@ SyncAction::~SyncAction()
{
}
-/* virtual */ QString SyncAction::statusString() const
+/* virtual */ TQString SyncAction::statusString() const
{
FUNCTIONSETUP;
- QString s = CSL1("status=");
+ TQString s = CSL1("status=");
- s.append(QString::number(status()));
+ s.append(TQString::number(status()));
return s;
}
@@ -101,7 +101,7 @@ SyncAction::~SyncAction()
if (!r)
{
emit logError(i18n("The conduit %1 could not be executed.")
- .arg(QString::fromLatin1(name())));
+ .arg(TQString::fromLatin1(name())));
delayDone();
}
}
@@ -113,7 +113,7 @@ SyncAction::~SyncAction()
bool SyncAction::delayDone()
{
- QTimer::singleShot(0,this,SLOT(delayedDoneSlot()));
+ TQTimer::singleShot(0,this,TQT_SLOT(delayedDoneSlot()));
return true;
}
@@ -134,7 +134,7 @@ static struct
}
;
-SyncAction::SyncMode::SyncMode(const QStringList &args) :
+SyncAction::SyncMode::SyncMode(const TQStringList &args) :
fMode(eHotSync),
fTest(args.contains("--test")),
fLocal(args.contains("--local"))
@@ -142,7 +142,7 @@ SyncAction::SyncMode::SyncMode(const QStringList &args) :
int i = 0;
while(maps[i].name)
{
- if (args.contains(QString::fromLatin1(maps[i].name)))
+ if (args.contains(TQString::fromLatin1(maps[i].name)))
{
fMode = maps[i].mode;
break;
@@ -170,18 +170,18 @@ SyncAction::SyncMode::SyncMode(Mode m, bool test, bool local) :
}
}
-QStringList SyncAction::SyncMode::list() const
+TQStringList SyncAction::SyncMode::list() const
{
FUNCTIONSETUPL(3);
- QStringList l;
+ TQStringList l;
int i=0;
while(maps[i].name)
{
if ( fMode == maps[i].mode )
{
- l.append(QString::fromLatin1(maps[i].name));
+ l.append(TQString::fromLatin1(maps[i].name));
break;
}
i++;
@@ -189,7 +189,7 @@ QStringList SyncAction::SyncMode::list() const
if ( !maps[i].name )
{
WARNINGKPILOT << "Mode " << fMode << " does not have a name." << endl;
- l.append(QString::fromLatin1(maps[0].name));
+ l.append(TQString::fromLatin1(maps[0].name));
}
if (isTest()) l.append(CSL1("--test"));
@@ -197,7 +197,7 @@ QStringList SyncAction::SyncMode::list() const
return l;
}
-/* static */ QString SyncAction::SyncMode::name(SyncAction::SyncMode::Mode e)
+/* static */ TQString SyncAction::SyncMode::name(SyncAction::SyncMode::Mode e)
{
switch(e)
{
@@ -211,9 +211,9 @@ QStringList SyncAction::SyncMode::list() const
return CSL1("<unknown>");
}
-QString SyncAction::SyncMode::name() const
+TQString SyncAction::SyncMode::name() const
{
- QString s = name(fMode);
+ TQString s = name(fMode);
if (isTest())
{
@@ -272,7 +272,7 @@ void SyncAction::startTickle(unsigned timeout)
}
else
{
- connect(deviceLink(),SIGNAL(timeout()),this,SIGNAL(timeout()));
+ connect(deviceLink(),TQT_SIGNAL(timeout()),this,TQT_SIGNAL(timeout()));
deviceLink()->startTickle(timeout);
}
}
@@ -286,18 +286,18 @@ void SyncAction::stopTickle()
}
else
{
- disconnect(deviceLink(),SIGNAL(timeout()),this,SIGNAL(timeout()));
+ disconnect(deviceLink(),TQT_SIGNAL(timeout()),this,TQT_SIGNAL(timeout()));
deviceLink()->stopTickle();
}
}
-int SyncAction::questionYesNo(const QString & text,
- const QString & caption,
- const QString & key,
+int SyncAction::questionYesNo(const TQString & text,
+ const TQString & caption,
+ const TQString & key,
unsigned timeout,
- const QString & yes,
- const QString &no )
+ const TQString & yes,
+ const TQString &no )
{
FUNCTIONSETUP;
@@ -322,17 +322,17 @@ int SyncAction::questionYesNo(const QString & text,
if ( (timeout > 0) && ( deviceLink() ) )
{
- QObject::connect(deviceLink(), SIGNAL(timeout()),
- dialog, SLOT(slotCancel()));
+ TQObject::connect(deviceLink(), TQT_SIGNAL(timeout()),
+ dialog, TQT_SLOT(slotCancel()));
startTickle(timeout);
}
#if KDE_IS_VERSION(3,3,0)
r = (KMessageBox::ButtonCode) KMessageBox::createKMessageBox(dialog,
- QMessageBox::Question,
+ TQMessageBox::Question,
text,
- QStringList(),
- (key.isEmpty() ? QString::null : i18n("&Do not ask again")),
+ TQStringList(),
+ (key.isEmpty() ? TQString::null : i18n("&Do not ask again")),
&checkboxReturn,
0);
@@ -342,32 +342,32 @@ int SyncAction::questionYesNo(const QString & text,
// by Waldo Bastian.
//
//
- QVBox *topcontents = new QVBox(dialog);
+ TQVBox *topcontents = new TQVBox(dialog);
topcontents->setSpacing(KDialog::spacingHint() * 2);
topcontents->setMargin(KDialog::marginHint() * 2);
- QWidget *contents = new QWidget(topcontents);
- QHBoxLayout *lay = new QHBoxLayout(contents);
+ TQWidget *contents = new TQWidget(topcontents);
+ TQHBoxLayout *lay = new TQHBoxLayout(contents);
lay->setSpacing(KDialog::spacingHint() * 2);
lay->addStretch(1);
- QLabel *label1 = new QLabel( contents);
- label1->setPixmap(QMessageBox::standardIcon(QMessageBox::Information));
+ TQLabel *label1 = new TQLabel( contents);
+ label1->setPixmap(TQMessageBox::standardIcon(TQMessageBox::Information));
lay->add( label1 );
- QLabel *label2 = new QLabel( text, contents);
+ TQLabel *label2 = new TQLabel( text, contents);
label2->setMinimumSize(label2->sizeHint());
lay->add(label2);
lay->addStretch(1);
- QSize extraSize = QSize(50, 30);
+ TQSize extraSize = TQSize(50, 30);
- QCheckBox *checkbox = 0L;
+ TQCheckBox *checkbox = 0L;
if (!key.isEmpty())
{
- checkbox = new QCheckBox(i18n("Do not ask again"),topcontents);
- extraSize = QSize(50,0);
+ checkbox = new TQCheckBox(i18n("Do not ask again"),topcontents);
+ extraSize = TQSize(50,0);
}
dialog->setMainWidget(topcontents);
@@ -400,12 +400,12 @@ int SyncAction::questionYesNo(const QString & text,
}
-int SyncAction::questionYesNoCancel(const QString & text,
- const QString & caption,
- const QString & key,
+int SyncAction::questionYesNoCancel(const TQString & text,
+ const TQString & caption,
+ const TQString & key,
unsigned timeout,
- const QString &yes,
- const QString &no)
+ const TQString &yes,
+ const TQString &no)
{
FUNCTIONSETUP;
@@ -435,17 +435,17 @@ int SyncAction::questionYesNoCancel(const QString & text,
if ( (timeout > 0) && (deviceLink()) )
{
- QObject::connect(deviceLink(), SIGNAL(timeout()),
- dialog, SLOT(slotCancel()));
+ TQObject::connect(deviceLink(), TQT_SIGNAL(timeout()),
+ dialog, TQT_SLOT(slotCancel()));
startTickle(timeout);
}
#if KDE_IS_VERSION(3,3,0)
r = KMessageBox::createKMessageBox(dialog,
- QMessageBox::Question,
+ TQMessageBox::Question,
text,
- QStringList(),
- (key.isEmpty() ? QString::null : i18n("&Do not ask again")),
+ TQStringList(),
+ (key.isEmpty() ? TQString::null : i18n("&Do not ask again")),
&checkboxReturn,
0);
#else
@@ -454,32 +454,32 @@ int SyncAction::questionYesNoCancel(const QString & text,
// by Waldo Bastian.
//
//
- QVBox *topcontents = new QVBox(dialog);
+ TQVBox *topcontents = new TQVBox(dialog);
topcontents->setSpacing(KDialog::spacingHint() * 2);
topcontents->setMargin(KDialog::marginHint() * 2);
- QWidget *contents = new QWidget(topcontents);
- QHBoxLayout *lay = new QHBoxLayout(contents);
+ TQWidget *contents = new TQWidget(topcontents);
+ TQHBoxLayout *lay = new TQHBoxLayout(contents);
lay->setSpacing(KDialog::spacingHint() * 2);
lay->addStretch(1);
- QLabel *label1 = new QLabel( contents);
- label1->setPixmap(QMessageBox::standardIcon(QMessageBox::Information));
+ TQLabel *label1 = new TQLabel( contents);
+ label1->setPixmap(TQMessageBox::standardIcon(TQMessageBox::Information));
lay->add( label1 );
- QLabel *label2 = new QLabel( text, contents);
+ TQLabel *label2 = new TQLabel( text, contents);
label2->setMinimumSize(label2->sizeHint());
lay->add(label2);
lay->addStretch(1);
- QSize extraSize = QSize(50, 30);
+ TQSize extraSize = TQSize(50, 30);
- QCheckBox *checkbox = 0L;
+ TQCheckBox *checkbox = 0L;
if (!key.isEmpty())
{
- checkbox = new QCheckBox(i18n("Do not ask again"),topcontents);
- extraSize = QSize(50,0);
+ checkbox = new TQCheckBox(i18n("Do not ask again"),topcontents);
+ extraSize = TQSize(50,0);
}
dialog->setMainWidget(topcontents);