summaryrefslogtreecommitdiffstats
path: root/kalarm/kalarmd/adconfigdata.cpp
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 /kalarm/kalarmd/adconfigdata.cpp
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 'kalarm/kalarmd/adconfigdata.cpp')
-rw-r--r--kalarm/kalarmd/adconfigdata.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/kalarm/kalarmd/adconfigdata.cpp b/kalarm/kalarmd/adconfigdata.cpp
index 11dc6bf67..c8c5dd355 100644
--- a/kalarm/kalarmd/adconfigdata.cpp
+++ b/kalarm/kalarmd/adconfigdata.cpp
@@ -20,8 +20,8 @@
#include "kalarmd.h"
-#include <qregexp.h>
-#include <qstringlist.h>
+#include <tqregexp.h>
+#include <tqstringlist.h>
#include <kconfig.h>
#include <kstandarddirs.h>
@@ -31,13 +31,13 @@
#include "adconfigdata.h"
// Config file key strings
-const QString CLIENT_GROUP(QString::fromLatin1("Client "));
-const QRegExp CLIENT_GROUP_SEARCH("^Client ");
+const TQString CLIENT_GROUP(TQString::fromLatin1("Client "));
+const TQRegExp CLIENT_GROUP_SEARCH("^Client ");
// Client data file key strings
-const QString CALENDAR_KEY(QString::fromLatin1("Calendar"));
-const QString TITLE_KEY(QString::fromLatin1("Title"));
-const QString DCOP_OBJECT_KEY(QString::fromLatin1("DCOP object"));
-const QString START_CLIENT_KEY(QString::fromLatin1("Start"));
+const TQString CALENDAR_KEY(TQString::fromLatin1("Calendar"));
+const TQString TITLE_KEY(TQString::fromLatin1("Title"));
+const TQString DCOP_OBJECT_KEY(TQString::fromLatin1("DCOP object"));
+const TQString START_CLIENT_KEY(TQString::fromLatin1("Start"));
/******************************************************************************
@@ -49,17 +49,17 @@ void ADConfigData::readConfig()
kdDebug(5900) << "ADConfigData::readConfig()" << endl;
ClientInfo::clear();
KConfig* config = KGlobal::config();
- QStringList clients = config->groupList().grep(CLIENT_GROUP_SEARCH);
- for (QStringList::Iterator cl = clients.begin(); cl != clients.end(); ++cl)
+ TQStringList clients = config->groupList().grep(CLIENT_GROUP_SEARCH);
+ for (TQStringList::Iterator cl = clients.begin(); cl != clients.end(); ++cl)
{
// Read this client's configuration
config->setGroup(*cl);
- QString client = *cl;
+ TQString client = *cl;
client.remove(CLIENT_GROUP_SEARCH);
- QString title = config->readEntry(TITLE_KEY, client); // read app title (default = app name)
- QCString dcopObject = config->readEntry(DCOP_OBJECT_KEY).local8Bit();
+ TQString title = config->readEntry(TITLE_KEY, client); // read app title (default = app name)
+ TQCString dcopObject = config->readEntry(DCOP_OBJECT_KEY).local8Bit();
bool startClient = config->readBoolEntry(START_CLIENT_KEY, false);
- QString calendar = config->readPathEntry(CALENDAR_KEY);
+ TQString calendar = config->readPathEntry(CALENDAR_KEY);
// Verify the configuration
bool ok = false;
@@ -99,12 +99,12 @@ void ADConfigData::readConfig()
/******************************************************************************
* Write a client application's details to the config file.
*/
-void ADConfigData::writeClient(const QCString& appName, const ClientInfo* cinfo)
+void ADConfigData::writeClient(const TQCString& appName, const ClientInfo* cinfo)
{
KConfig* config = KGlobal::config();
- config->setGroup(CLIENT_GROUP + QString::fromLocal8Bit(appName));
+ config->setGroup(CLIENT_GROUP + TQString::fromLocal8Bit(appName));
config->writeEntry(TITLE_KEY, cinfo->title());
- config->writeEntry(DCOP_OBJECT_KEY, QString::fromLocal8Bit(cinfo->dcopObject()));
+ config->writeEntry(DCOP_OBJECT_KEY, TQString::fromLocal8Bit(cinfo->dcopObject()));
config->writeEntry(START_CLIENT_KEY, cinfo->startClient());
config->writePathEntry(CALENDAR_KEY, cinfo->calendar()->urlString());
config->sync();
@@ -113,20 +113,20 @@ void ADConfigData::writeClient(const QCString& appName, const ClientInfo* cinfo)
/******************************************************************************
* Remove a client application's details from the config file.
*/
-void ADConfigData::removeClient(const QCString& appName)
+void ADConfigData::removeClient(const TQCString& appName)
{
KConfig* config = KGlobal::config();
- config->deleteGroup(CLIENT_GROUP + QString::fromLocal8Bit(appName));
+ config->deleteGroup(CLIENT_GROUP + TQString::fromLocal8Bit(appName));
config->sync();
}
/******************************************************************************
* Set the calendar file URL for a specified application.
*/
-void ADConfigData::setCalendar(const QCString& appName, ADCalendar* cal)
+void ADConfigData::setCalendar(const TQCString& appName, ADCalendar* cal)
{
KConfig* config = KGlobal::config();
- config->setGroup(CLIENT_GROUP + QString::fromLocal8Bit(appName));
+ config->setGroup(CLIENT_GROUP + TQString::fromLocal8Bit(appName));
config->writePathEntry(CALENDAR_KEY, cal->urlString());
config->sync();
}
@@ -139,8 +139,8 @@ void ADConfigData::enableAutoStart(bool on)
kdDebug(5900) << "ADConfigData::enableAutoStart(" << on << ")\n";
KConfig* config = KGlobal::config();
config->reparseConfiguration();
- config->setGroup(QString::fromLatin1(DAEMON_AUTOSTART_SECTION));
- config->writeEntry(QString::fromLatin1(DAEMON_AUTOSTART_KEY), on);
+ config->setGroup(TQString::fromLatin1(DAEMON_AUTOSTART_SECTION));
+ config->writeEntry(TQString::fromLatin1(DAEMON_AUTOSTART_KEY), on);
config->sync();
}