Changeset 6048 for branches/qt-gui_qt4/src/core/mainwin.cpp
- Timestamp:
- 01/15/08 07:13:45 (10 months ago)
- Files:
-
- 1 modified
-
branches/qt-gui_qt4/src/core/mainwin.cpp (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/qt-gui_qt4/src/core/mainwin.cpp
r6045 r6048 27 27 28 28 #ifdef USE_KDE 29 #include < kapp.h>30 #include < kglobal.h>31 #include < kglobalsettings.h>32 #include < kstandarddirs.h>33 #include < kwin.h>34 #include < kiconloader.h>35 #include < kurl.h>36 #include < kpassivepopup.h>29 #include <KDE/KApplication> 30 #include <KDE/KGlobal> 31 #include <KDE/KGlobalSettings> 32 #include <KDE/KStandardDirs> 33 #include <KDE/KWindowSystem> 34 #include <KDE/KIconLoader> 35 #include <KDE/KUrl> 36 #include <KDE/KPassivePopup> 37 37 #else 38 38 #include <QApplication> … … 105 105 106 106 #ifdef USE_KDE 107 #include "licqkimiface.h" 108 #include "dcopclient.h" 107 // TODO 108 // #include "licqkimiface.h" 109 // #include "dcopclient.h" 109 110 #endif 110 111 … … 256 257 257 258 #ifdef USE_KDE 259 /* TODO 258 260 kdeIMInterface = new LicqKIMIface(KApplication::dcopClient()->appId(), this); 259 261 connect(kdeIMInterface, … … 271 273 SIGNAL(addUser(const char*, unsigned long)), 272 274 SLOT(addUser(const char*, unsigned long))); 275 */ 273 276 #endif 274 277 … … 276 279 { 277 280 #ifdef USE_KDE 278 kdeIMInterface->addProtocol((*_ppit)->Name(), (*_ppit)->PPID()); 281 // TODO 282 // kdeIMInterface->addProtocol((*_ppit)->Name(), (*_ppit)->PPID()); 279 283 #endif 280 284 if ((*_ppit)->PPID() != LICQ_PPID) // XXX To be removed later … … 316 320 show(); 317 321 #ifdef USE_KDE 318 KWin ::setOnDesktop(winId(), KWin::currentDesktop());322 KWindowSystem::setOnDesktop(winId(), KWindowSystem::currentDesktop()); 319 323 #endif 320 324 if (isMaximized()) … … 581 585 case USER_STATUS: 582 586 #ifdef USE_KDE 583 kdeIMInterface->userStatusChanged(id, ppid); 587 // TODO 588 // kdeIMInterface->userStatusChanged(id, ppid); 584 589 #endif 585 590 case USER_BASIC: … … 635 640 alias.replace(QChar('>'), ">"); 636 641 637 QString msg(tr("%1 is online") ).arg("<b>" + alias + "</b>");642 QString msg(tr("%1 is online").arg("<b>" + alias + "</b>")); 638 643 QPixmap px = IconManager::instance()->iconForStatus(u->StatusFull(), u->IdString(), u->PPID()); 639 KPassivePopup::message("Licq", msg, px, LicqGui::instance()->dockIcon(), NULL,4000);644 KPassivePopup::message("Licq", msg, px, LicqGui::instance()->dockIcon(), 4000); 640 645 } 641 646 #endif … … 939 944 940 945 #ifdef USE_KDE 941 // let KDE IM interface know about the new protocol 942 kdeIMInterface->addProtocol(QString(pName), nPPID); 946 // TODO 947 // let KDE IM interface know about the new protocol 948 // kdeIMInterface->addProtocol(QString(pName), nPPID); 943 949 #endif 944 950 } … … 1006 1012 1007 1013 #ifdef USE_KDE 1008 kdeIMInterface->removeProtocol(_nPPID); 1014 // TODO 1015 // kdeIMInterface->removeProtocol(_nPPID); 1009 1016 #endif 1010 1017 }
