summaryrefslogtreecommitdiffstats
path: root/src/server/connectionframe/connectionframe.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/connectionframe/connectionframe.h')
-rw-r--r--src/server/connectionframe/connectionframe.h26
1 files changed, 14 insertions, 12 deletions
diff --git a/src/server/connectionframe/connectionframe.h b/src/server/connectionframe/connectionframe.h
index 9d86c70..2549ae8 100644
--- a/src/server/connectionframe/connectionframe.h
+++ b/src/server/connectionframe/connectionframe.h
@@ -3,6 +3,8 @@
#include <QtGui>
#include "../net/client.h"
+class MainWindow;
+
/**
* Class for representing the clients of current session, with a specific frame
* displaying username and hostname for each one.
@@ -29,11 +31,8 @@ private:
QPoint _clickPoint;
QPoint _previousPosition;
- QPoint _currentPosition;
-
QPoint _gridPosition;
-
Client *_client;
int _timerId, _timerCounter;
@@ -45,22 +44,25 @@ private:
void showDefaultThumb();
QLabel* addIcon(const QIcon* icon);
+ MainWindow *_mainWindow;
+
public:
- ConnectionFrame(QWidget* parent, int width, int height);
+
+ static bool paintDisabled;
+
+ ConnectionFrame(MainWindow* main, QWidget* parent);
virtual ~ConnectionFrame();
+ const inline QPoint getGridPosition() const { return _gridPosition; }
+ void setGridPosition(int x, int y);
+ void setGridPosition(const QPoint& pos);
+ void updateGeometry();
+
const QPixmap& getFramePixmap() const { return _remoteScreen; }
- void setSize(int width, int height);
- const inline QPoint& getPreviousPosition() const { return _previousPosition; }
void assignClient(Client *client);
void setSelection(bool selected);
const inline bool isSelected() const { return _isSelected; }
- inline void setGridPosition(QPoint pos) { _gridPosition = pos; }
- inline QPoint getGridPosition() const { return _gridPosition; };
- const inline void setCurrentPosition(QPoint position) { _currentPosition = position; }
- const inline QPoint& getCurrentPosition() const { return _currentPosition; }
-
const QString& computerId() const { return _computerId; }
void setComputerId(QString computerId) { if (_client != NULL) return; _computerId = computerId; updateLabels(); }
Client* client() const { return _client; }
@@ -79,7 +81,7 @@ protected:
void timerEvent(QTimerEvent* event);
signals:
- void frameMoved(bool activateTrash, ConnectionFrame* frame);
+ void frameMoved(ConnectionFrame* frame);
void doubleClicked(ConnectionFrame* frame);
void clicked(ConnectionFrame* frame);