diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kinit/autostart.cpp | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kinit/autostart.cpp')
-rw-r--r-- | kinit/autostart.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/kinit/autostart.cpp b/kinit/autostart.cpp index 7780f793c..c4dcbb543 100644 --- a/kinit/autostart.cpp +++ b/kinit/autostart.cpp @@ -30,13 +30,13 @@ class AutoStartItem { public: - QString name; - QString service; - QString startAfter; + TQString name; + TQString service; + TQString startAfter; int phase; }; -class AutoStartList: public QPtrList<AutoStartItem> +class AutoStartList: public TQPtrList<AutoStartItem> { public: AutoStartList() { } @@ -48,12 +48,12 @@ AutoStart::AutoStart( bool new_startup ) m_startList = new AutoStartList; m_startList->setAutoDelete(true); KGlobal::dirs()->addResourceType("autostart", "share/autostart"); - QString xdgdirs = getenv("XDG_CONFIG_DIRS"); + TQString xdgdirs = getenv("XDG_CONFIG_DIRS"); if (xdgdirs.isEmpty()) xdgdirs = "/etc/xdg"; - QStringList xdgdirslist = QStringList::split( ':', xdgdirs ); - for ( QStringList::Iterator itr = xdgdirslist.begin(); itr != xdgdirslist.end(); ++itr ) { + TQStringList xdgdirslist = TQStringList::split( ':', xdgdirs ); + for ( TQStringList::Iterator itr = xdgdirslist.begin(); itr != xdgdirslist.end(); ++itr ) { KGlobal::dirs()->addResourceDir("autostart", (*itr) +"/autostart"); } } @@ -78,7 +78,7 @@ void AutoStart::setPhaseDone() m_phasedone = true; } -static QString extractName(QString path) +static TQString extractName(TQString path) { int i = path.findRev('/'); if (i >= 0) @@ -89,12 +89,12 @@ static QString extractName(QString path) return path; } -static bool startCondition(const QString &condition) +static bool startCondition(const TQString &condition) { if (condition.isEmpty()) return true; - QStringList list = QStringList::split(':', condition, true); + TQStringList list = TQStringList::split(':', condition, true); if (list.count() < 4) return true; if (list[0].isEmpty() || list[2].isEmpty()) @@ -112,9 +112,9 @@ static bool startCondition(const QString &condition) void AutoStart::loadAutoStartList() { - QStringList files = KGlobal::dirs()->findAllResources("autostart", "*.desktop", false, true); + TQStringList files = KGlobal::dirs()->findAllResources("autostart", "*.desktop", false, true); - for(QStringList::ConstIterator it = files.begin(); + for(TQStringList::ConstIterator it = files.begin(); it != files.end(); ++it) { @@ -167,7 +167,7 @@ AutoStart::startService() { // Check for items that depend on previously started items - QString lastItem = m_started[0]; + TQString lastItem = m_started[0]; for(AutoStartItem *item = m_startList->first(); item; item = m_startList->next()) { @@ -175,7 +175,7 @@ AutoStart::startService() && item->startAfter == lastItem) { m_started.prepend(item->name); - QString service = item->service; + TQString service = item->service; m_startList->remove(); return service; } @@ -192,7 +192,7 @@ AutoStart::startService() && item->startAfter.isEmpty()) { m_started.prepend(item->name); - QString service = item->service; + TQString service = item->service; m_startList->remove(); return service; } @@ -205,7 +205,7 @@ AutoStart::startService() if (item->phase == m_phase) { m_started.prepend(item->name); - QString service = item->service; + TQString service = item->service; m_startList->remove(); return service; } |