26 #include <QGraphicsObject>
27 #include <QPropertyAnimation>
31 class QDeclarativeEngine;
32 class QDeclarativeComponent;
40 SystemMenu(
int width,
int height,
bool restricted =
false);
49 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget);
53 void slotCloseSystemMenu();
55 void slotWifiMenuOpened();
56 void slotWifiMenuClosed();
57 void slotWifiOnOffTriggered();
58 void slotWifiPrefsTriggered();
59 void slotWifiNetworkSelected(
int index, QString name,
int profileId, QString securityType, QString connStatus);
61 void slotBluetoothMenuOpened();
62 void slotBluetoothMenuClosed();
63 void slotBluetoothOnOffTriggered();
64 void slotBluetoothPrefsTriggered();
65 void slotBluetoothDeviceSelected(
int index);
67 void slotVpnMenuOpened();
68 void slotVpnMenuClosed();
69 void slotVpnPrefsTriggered();
70 void slotVpnNetworkSelected(QString name, QString status, QString profInfo);
72 void slotAirplaneModeTriggered();
73 void slotRotationLockTriggered(
bool isLocked);
74 void slotMuteToggleTriggered(
bool isMuted);
75 void slotRotationLockChanged(OrientationEvent::Orientation rotationLock);
76 void slotMuteSoundChanged(
bool muteOn);
77 void slotDisplayMaxBrightnessChanged(
int brightness);
79 void slotPowerdConnectionStateChanged(
bool connected);
80 void slotBatteryLevelUpdated(
int percentage);
82 void slotWifiStateChanged(
bool wifiOn,
bool wifiConnected, std::string wifiSSID, std::string wifiConnState);
83 void slotWifiAvailableNetworksListUpdate(
int numNetworks,
t_wifiAccessPoint* list);
85 void slotBluetoothTurnedOn();
86 void slotBluetoothPowerStateChanged(
t_radioState radioState);
87 void slotBluetoothConnStateChanged(
bool btConnected, std::string deviceName);
88 void slotBluetoothTrustedDevicesUpdate(
int numTrustedDevices,
t_bluetoothDevice* list);
89 void slotBluetoothParedDevicesAvailable(
bool available);
91 void slotVpnProfileListUpdate(
int numProfiles,
t_vpnProfile* list);
92 void slotVpnStateChanged(
bool enabled);
94 void slotMenuBrightnessChanged(qreal value,
bool save);
96 void slotSystemTimeChanged();
97 void slotPositiveSpaceChangeFinished(QRect rect);
105 bool sceneEvent(
QEvent* event);
108 void launchApp(std::string appId, std::string params);
110 void connectBtAudioDevice(std::string address,
unsigned int cod);
115 int m_rightEdgeOffset;
116 QDeclarativeComponent* m_qmlMenu;
125 bool m_wifiMenuOpened;
128 bool m_bluetoothMenuOpened;
130 bool m_btPairedDevicesAvailable;
131 bool m_btTurnOnRequested;
132 std::vector<t_bluetoothDevice> m_trustedDevices;
133 std::string m_pendingDevAddress;
138 bool m_vpnMenuOpened;
192 int on()
const {
return m_on; }
196 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget);
206 QPropertyAnimation m_anim;