added idle status and connection to messenger window

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2795 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
chrisparker126 2010-04-27 12:18:44 +00:00
parent eed3de92a9
commit 5cc59d6e77
2 changed files with 6 additions and 0 deletions

View File

@ -266,6 +266,9 @@ MainWindow::MainWindow(QWidget* parent, Qt::WFlags flags)
/* Creates a tray icon with a context menu and adds it to the system's * notification area. */
createTrayIcon();
idle = new Idle();
idle->start();
QTimer *timer = new QTimer(this);
timer->connect(timer, SIGNAL(timeout()), this, SLOT(updateStatus()));
timer->start(1000);

View File

@ -45,6 +45,7 @@
#include "ui_MainWindow.h"
#include "gui/common/rwindow.h"
#include "idle/idle.h"
class PeerStatus;
class NATStatus;
@ -90,6 +91,8 @@ public:
MessagesDialog *messagesDialog;
SharedFilesDialog *sharedfilesDialog;
MessengerWindow *messengerWindow;
Idle *idle;
#ifdef UNFINISHED
ApplicationWindow *applicationWindow;
#endif