Show
Ignore:
Timestamp:
05/06/08 04:50:29 (7 months ago)
Author:
flynd
Message:

Moved eventSent signal from mainwin to licqgui.

Location:
trunk/qt4-gui/src/core
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/qt4-gui/src/core/licqgui.cpp

    r6160 r6185  
    994994  } 
    995995 
     996  // Since daemon doesn't notify us when an event is sent we need to take care of it ourselfs 
     997  // Get signals from event dialog and forward it to anyone who needs it 
     998  connect(e, SIGNAL(eventSent(const ICQEvent*)), SIGNAL(eventSent(const ICQEvent*))); 
     999 
    9961000  // there might be more than one send window open 
    9971001  // make sure we only remember one, or it will get complicated 
     
    10071011    disconnect(oldDialog, SIGNAL(finished(QString, unsigned long)), this, SLOT(sendEventFinished(QString, unsigned long))); 
    10081012    sendEventFinished(id, ppid); 
     1013  connect(newDialog, SIGNAL(eventSent(const ICQEvent*)), SIGNAL(eventSent(const ICQEvent*))); 
    10091014    connect(newDialog, SIGNAL(finished(QString, unsigned long)), SLOT(sendEventFinished(QString, unsigned long))); 
    10101015    myUserSendList.append(newDialog); 
  • trunk/qt4-gui/src/core/licqgui.h

    r6160 r6185  
    3737class CICQDaemon; 
    3838class CICQSignal; 
     39class ICQEvent; 
    3940 
    4041namespace LicqQtGui 
     
    230231  void sendChatRequest(QString id, unsigned long ppid); 
    231232 
     233signals: 
     234  /** 
     235   * Since daemon doesn't notify us when an event is sent we'll have to handle 
     236   * it ourselfs. This is used by event dialog to notify other dialogs when a 
     237   * message has been sent. 
     238   * 
     239   * @param event Event object that was sent 
     240   */ 
     241  void eventSent(const ICQEvent* event); 
     242 
    232243private slots: 
    233244#ifdef Q_WS_X11 
  • trunk/qt4-gui/src/core/mainwin.h

    r6152 r6185  
    9797  virtual void closeEvent(QCloseEvent*); 
    9898 
    99 signals: 
    100   void signal_sentevent(ICQEvent* e); 
    101  
    10299public slots: 
    103100  void slot_shutdown(); 
     
    159156  void callUserFunction(QAction* action); 
    160157  void checkUserAutoResponse(); 
    161  
    162   friend class UserSendCommon; 
    163158}; 
    164159