1 // checksum 0x9a77 version 0x20001
3 This file was generated by the Mobile Qt Application wizard of Qt Creator.
4 MainWindow is a convenience class containing mobile device specific code
5 such as screen orientation handling.
6 It is recommended not to modify this file, since newer versions of Qt Creator
7 may offer an updated version of it.
13 #include <QtGui/QMainWindow>
14 #include <QtNetwork/QTcpSocket>
15 #include <QStateMachine>
22 class MainWindow : public QMainWindow
26 enum ScreenOrientation {
27 ScreenOrientationLockPortrait,
28 ScreenOrientationLockLandscape,
32 explicit MainWindow(QWidget *parent = 0);
33 virtual ~MainWindow();
35 void setOrientation(ScreenOrientation orientation);
39 // manual connected slots
40 void connectToServer();
41 void disconnectFromServer();
43 // auto-connected slots
44 void on_actionSetup_triggered();
47 void pendingNetworkOperation(bool pending);
50 void createTransitions();
51 void createConnections();
53 QTcpSocket serverSocket;
56 QStateMachine stateMachine;
57 QState* disconnectedState;
58 QState* connectedState;
59 QState* disconnectingState;
61 QState* connectingState;
64 #endif // MAINWINDOW_H