Show
Ignore:
Timestamp:
01/15/08 07:13:45 (10 months ago)
Author:
erijo
Message:

Enable KDE4 support.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/qt-gui_qt4/src/core/mainwin.cpp

    r6045 r6048  
    2727 
    2828#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> 
    3737#else 
    3838#include <QApplication> 
     
    105105 
    106106#ifdef USE_KDE 
    107     #include "licqkimiface.h" 
    108     #include "dcopclient.h" 
     107// TODO 
     108// #include "licqkimiface.h" 
     109// #include "dcopclient.h" 
    109110#endif 
    110111 
     
    256257 
    257258#ifdef USE_KDE 
     259  /* TODO 
    258260  kdeIMInterface = new LicqKIMIface(KApplication::dcopClient()->appId(), this); 
    259261  connect(kdeIMInterface, 
     
    271273      SIGNAL(addUser(const char*, unsigned long)), 
    272274      SLOT(addUser(const char*, unsigned long))); 
     275  */ 
    273276#endif 
    274277 
     
    276279  { 
    277280#ifdef USE_KDE 
    278     kdeIMInterface->addProtocol((*_ppit)->Name(), (*_ppit)->PPID()); 
     281    // TODO 
     282    // kdeIMInterface->addProtocol((*_ppit)->Name(), (*_ppit)->PPID()); 
    279283#endif 
    280284    if ((*_ppit)->PPID() != LICQ_PPID) // XXX To be removed later 
     
    316320    show(); 
    317321#ifdef USE_KDE 
    318     KWin::setOnDesktop(winId(), KWin::currentDesktop()); 
     322    KWindowSystem::setOnDesktop(winId(), KWindowSystem::currentDesktop()); 
    319323#endif 
    320324    if (isMaximized()) 
     
    581585    case USER_STATUS: 
    582586#ifdef USE_KDE 
    583       kdeIMInterface->userStatusChanged(id, ppid); 
     587      // TODO 
     588      // kdeIMInterface->userStatusChanged(id, ppid); 
    584589#endif 
    585590    case USER_BASIC: 
     
    635640          alias.replace(QChar('>'), "&gt;"); 
    636641 
    637           QString msg(tr("%1 is online")).arg("<b>" + alias + "</b>"); 
     642          QString msg(tr("%1 is online").arg("<b>" + alias + "</b>")); 
    638643          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); 
    640645        } 
    641646#endif 
     
    939944 
    940945#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); 
    943949#endif 
    944950} 
     
    10061012 
    10071013#ifdef USE_KDE 
    1008   kdeIMInterface->removeProtocol(_nPPID); 
     1014  // TODO 
     1015  // kdeIMInterface->removeProtocol(_nPPID); 
    10091016#endif 
    10101017}