summaryrefslogtreecommitdiffstats
path: root/src/server/mainwindow/mainwindow.h
diff options
context:
space:
mode:
authorManuel Schneider2014-04-30 15:11:47 +0200
committerManuel Schneider2014-04-30 15:11:47 +0200
commita7aa883f638d5c53d760d14ba2f1e9694197490d (patch)
tree84326477167c3b9b430690d11e7d539388cb0617 /src/server/mainwindow/mainwindow.h
parentIncreased the timeout for debugging purposes; Instruct vncserver to trasmit just (diff)
parentKISS'n'DRY for more cohesion (diff)
downloadpvs2-a7aa883f638d5c53d760d14ba2f1e9694197490d.tar.gz
pvs2-a7aa883f638d5c53d760d14ba2f1e9694197490d.tar.xz
pvs2-a7aa883f638d5c53d760d14ba2f1e9694197490d.zip
Merge branch 'bastelstube'
Diffstat (limited to 'src/server/mainwindow/mainwindow.h')
-rw-r--r--src/server/mainwindow/mainwindow.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/server/mainwindow/mainwindow.h b/src/server/mainwindow/mainwindow.h
index e5179ed..153eb5b 100644
--- a/src/server/mainwindow/mainwindow.h
+++ b/src/server/mainwindow/mainwindow.h
@@ -40,6 +40,11 @@ private:
ListenServer *_listenServer;
DiscoveryListener *_discoveryListener;
+ // Button block stuff
+ QTimer * _buttonLockTimer;
+ QList<QAction*> _lockingButtons;
+ static const qint64 _buttonBlockTime = 1000;
+
/**
* Downloader for IP - List of possible tutors.
*/
@@ -51,7 +56,6 @@ private:
QStringList _tutorList;
// Magic numbers
- static const qint64 _buttonBlockTime = 1000;
static const int _tilesX = 9;
static const int _tilesY = 7;
@@ -61,7 +65,6 @@ private:
void savePosition(ConnectionFrame *cf);
void prepareForProjection(Client * const from, Client * const to);
bool isValidClient(Client* client);
- bool areButtonsBlocked();
public:
MainWindow(QString ipListUrl, QWidget *parent = 0);
@@ -98,5 +101,8 @@ protected slots:
void onClientAuthenticated(Client* client);
void onVncServerStateChange(Client* client);
void onVncClientStateChange(Client* client, int lastProjectionSource);
+ //Buttons
+ void DisableButtons();
+ void EnableButtons();
};
#endif