summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete/kopeteglobal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/libkopete/kopeteglobal.cpp')
-rw-r--r--kopete/libkopete/kopeteglobal.cpp92
1 files changed, 46 insertions, 46 deletions
diff --git a/kopete/libkopete/kopeteglobal.cpp b/kopete/libkopete/kopeteglobal.cpp
index a11dafdd..093be4df 100644
--- a/kopete/libkopete/kopeteglobal.cpp
+++ b/kopete/libkopete/kopeteglobal.cpp
@@ -67,7 +67,7 @@ Properties::~Properties()
delete d;
}
-const ContactPropertyTmpl &Properties::tmpl(const QString &key) const
+const ContactPropertyTmpl &Properties::tmpl(const TQString &key) const
{
if(d->mTemplates.contains(key))
{
@@ -79,7 +79,7 @@ const ContactPropertyTmpl &Properties::tmpl(const QString &key) const
return ContactPropertyTmpl::null;
}
-bool Properties::registerTemplate(const QString &key,
+bool Properties::registerTemplate(const TQString &key,
const ContactPropertyTmpl &tmpl)
{
if(d->mTemplates.contains(key))
@@ -95,104 +95,104 @@ bool Properties::registerTemplate(const QString &key,
}
}
-void Properties::unregisterTemplate(const QString &key)
+void Properties::unregisterTemplate(const TQString &key)
{
kdDebug(14000) << k_funcinfo << "called for key: '" << key << "'" << endl;
d->mTemplates.remove(key);
}
-bool Properties::isRegistered(const QString &key)
+bool Properties::isRegistered(const TQString &key)
{
return d->mTemplates.contains(key);
}
const ContactPropertyTmpl &Properties::fullName() const
{
- return createProp(QString::fromLatin1("FormattedName"),
+ return createProp(TQString::fromLatin1("FormattedName"),
i18n("Full Name"));
}
const ContactPropertyTmpl &Properties::idleTime() const
{
- return createProp(QString::fromLatin1("idleTime"),
+ return createProp(TQString::fromLatin1("idleTime"),
i18n("Idle Time"));
}
const ContactPropertyTmpl &Properties::onlineSince() const
{
- return createProp(QString::fromLatin1("onlineSince"),
+ return createProp(TQString::fromLatin1("onlineSince"),
i18n("Online Since"));
}
const ContactPropertyTmpl &Properties::lastSeen() const
{
- return createProp(QString::fromLatin1("lastSeen"),
- i18n("Last Seen"), QString::null, true);
+ return createProp(TQString::fromLatin1("lastSeen"),
+ i18n("Last Seen"), TQString::null, true);
}
const ContactPropertyTmpl &Properties::awayMessage() const
{
- return createProp(QString::fromLatin1("awayMessage"),
+ return createProp(TQString::fromLatin1("awayMessage"),
i18n("Away Message"));
}
const ContactPropertyTmpl &Properties::firstName() const
{
- return createProp(QString::fromLatin1("firstName"),
- i18n("First Name"), QString::null, true);
+ return createProp(TQString::fromLatin1("firstName"),
+ i18n("First Name"), TQString::null, true);
}
const ContactPropertyTmpl &Properties::lastName() const
{
- return createProp(QString::fromLatin1("lastName"),
- i18n("Last Name"), QString::null, true);
+ return createProp(TQString::fromLatin1("lastName"),
+ i18n("Last Name"), TQString::null, true);
}
const ContactPropertyTmpl &Properties::privatePhone() const
{
- return createProp(QString::fromLatin1("privatePhoneNumber"),
- i18n("Private Phone"), QString::null, true);
+ return createProp(TQString::fromLatin1("privatePhoneNumber"),
+ i18n("Private Phone"), TQString::null, true);
}
const ContactPropertyTmpl &Properties::privateMobilePhone() const
{
- return createProp(QString::fromLatin1("privateMobilePhoneNumber"),
- i18n("Private Mobile Phone"), QString::null, true);
+ return createProp(TQString::fromLatin1("privateMobilePhoneNumber"),
+ i18n("Private Mobile Phone"), TQString::null, true);
}
const ContactPropertyTmpl &Properties::workPhone() const
{
- return createProp(QString::fromLatin1("workPhoneNumber"),
- i18n("Work Phone"), QString::null, true);
+ return createProp(TQString::fromLatin1("workPhoneNumber"),
+ i18n("Work Phone"), TQString::null, true);
}
const ContactPropertyTmpl &Properties::workMobilePhone() const
{
- return createProp(QString::fromLatin1("workMobilePhoneNumber"),
- i18n("Work Mobile Phone"), QString::null, true);
+ return createProp(TQString::fromLatin1("workMobilePhoneNumber"),
+ i18n("Work Mobile Phone"), TQString::null, true);
}
const ContactPropertyTmpl &Properties::emailAddress() const
{
- return createProp(QString::fromLatin1("emailAddress"),
- i18n("Email Address"), QString::fromLatin1("mail_generic"), true);
+ return createProp(TQString::fromLatin1("emailAddress"),
+ i18n("Email Address"), TQString::fromLatin1("mail_generic"), true);
}
const ContactPropertyTmpl &Properties::nickName() const
{
- return createProp(QString::fromLatin1("nickName"),
- i18n("Nick Name"), QString::null, true);
+ return createProp(TQString::fromLatin1("nickName"),
+ i18n("Nick Name"), TQString::null, true);
}
const ContactPropertyTmpl &Properties::photo() const
{
- return createProp(QString::fromLatin1("photo"),
- i18n("Photo"), QString::null, true);
+ return createProp(TQString::fromLatin1("photo"),
+ i18n("Photo"), TQString::null, true);
}
-const ContactPropertyTmpl &Properties::createProp(const QString &key,
- const QString &label, const QString &icon, bool persistent) const
+const ContactPropertyTmpl &Properties::createProp(const TQString &key,
+ const TQString &label, const TQString &icon, bool persistent) const
{
/*kdDebug(14000) << k_funcinfo <<
"key = " << key << ", label = " << label << endl;*/
@@ -216,15 +216,15 @@ const ContactPropertyTmpl::Map &Properties::templateMap() const
// -----------------------------------------------------------------------------
-void installEmoticonTheme(const QString &archiveName)
+void installEmoticonTheme(const TQString &archiveName)
{
- QStringList foundThemes;
+ TQStringList foundThemes;
KArchiveEntry *currentEntry = 0L;
KArchiveDirectory* currentDir = 0L;
KProgressDialog *progressDlg = 0L;
KArchive *archive = 0L;
- QString localThemesDir(locateLocal("emoticons", QString::null) );
+ TQString localThemesDir(locateLocal("emoticons", TQString::null) );
if(localThemesDir.isEmpty())
{
@@ -235,20 +235,20 @@ void installEmoticonTheme(const QString &archiveName)
}
progressDlg = new KProgressDialog(0 , "emoticonInstProgress",
- i18n("Installing Emoticon Themes..."), QString::null, true);
+ i18n("Installing Emoticon Themes..."), TQString::null, true);
progressDlg->progressBar()->setTotalSteps(foundThemes.count());
progressDlg->show();
kapp->processEvents();
- QString currentBundleMimeType = KMimeType::findByPath(archiveName, 0, false)->name();
- if( currentBundleMimeType == QString::fromLatin1("application/x-zip") )
+ TQString currentBundleMimeType = KMimeType::findByPath(archiveName, 0, false)->name();
+ if( currentBundleMimeType == TQString::fromLatin1("application/x-zip") )
archive = new KZip(archiveName);
- else if( currentBundleMimeType == QString::fromLatin1("application/x-tgz") ||
- currentBundleMimeType == QString::fromLatin1("application/x-tbz") ||
- currentBundleMimeType == QString::fromLatin1("application/x-gzip") ||
- currentBundleMimeType == QString::fromLatin1("application/x-bzip2") )
+ else if( currentBundleMimeType == TQString::fromLatin1("application/x-tgz") ||
+ currentBundleMimeType == TQString::fromLatin1("application/x-tbz") ||
+ currentBundleMimeType == TQString::fromLatin1("application/x-gzip") ||
+ currentBundleMimeType == TQString::fromLatin1("application/x-bzip2") )
archive = new KTar(archiveName);
- else if(archiveName.endsWith(QString::fromLatin1("jisp")) || archiveName.endsWith(QString::fromLatin1("zip")) )
+ else if(archiveName.endsWith(TQString::fromLatin1("jisp")) || archiveName.endsWith(TQString::fromLatin1("zip")) )
archive = new KZip(archiveName);
else
archive = new KTar(archiveName);
@@ -266,15 +266,15 @@ void installEmoticonTheme(const QString &archiveName)
const KArchiveDirectory* rootDir = archive->directory();
// iterate all the dirs looking for an emoticons.xml file
- QStringList entries = rootDir->entries();
- for (QStringList::Iterator it = entries.begin(); it != entries.end(); ++it)
+ TQStringList entries = rootDir->entries();
+ for (TQStringList::Iterator it = entries.begin(); it != entries.end(); ++it)
{
currentEntry = const_cast<KArchiveEntry*>(rootDir->entry(*it));
if (currentEntry->isDirectory())
{
currentDir = dynamic_cast<KArchiveDirectory*>( currentEntry );
- if (currentDir && ( currentDir->entry(QString::fromLatin1("emoticons.xml")) != NULL ||
- currentDir->entry(QString::fromLatin1("icondef.xml")) != NULL ) )
+ if (currentDir && ( currentDir->entry(TQString::fromLatin1("emoticons.xml")) != NULL ||
+ currentDir->entry(TQString::fromLatin1("icondef.xml")) != NULL ) )
foundThemes.append(currentDir->name());
}
}
@@ -290,7 +290,7 @@ void installEmoticonTheme(const QString &archiveName)
return;
}
- for (QStringList::ConstIterator it = foundThemes.begin(); it != foundThemes.end(); ++it)
+ for (TQStringList::ConstIterator it = foundThemes.begin(); it != foundThemes.end(); ++it)
{
progressDlg->setLabel(
i18n("<qt>Installing <strong>%1</strong> emoticon theme</qt>")