![]() |
Home · All Namespaces · All Classes |
00001 /**************************************************************************** 00002 ** 00003 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 00004 ** All rights reserved. 00005 ** Contact: Nokia Corporation (directui@nokia.com) 00006 ** 00007 ** This file is part of systemui. 00008 ** 00009 ** If you have questions regarding the use of this file, please contact 00010 ** Nokia at directui@nokia.com. 00011 ** 00012 ** This library is free software; you can redistribute it and/or 00013 ** modify it under the terms of the GNU Lesser General Public 00014 ** License version 2.1 as published by the Free Software Foundation 00015 ** and appearing in the file LICENSE.LGPL included in the packaging 00016 ** of this file. 00017 ** 00018 ****************************************************************************/ 00019 #ifndef USBUI_H 00020 #define USBUI_H 00021 00022 #include <QObject> 00023 #include <QPointer> 00024 #include <MDialog> 00025 00026 #ifdef HAVE_QMSYSTEM 00027 #include <qmusbmode.h> 00028 #endif 00029 00030 namespace MeeGo { 00031 class QmLocks; 00032 } 00033 00034 class MGConfItem; 00035 class QGraphicsLinearLayout; 00036 class MLabel; 00037 class MBasicListItem; 00038 00042 class UsbUi : public MDialog { 00043 Q_OBJECT 00044 00045 public: 00049 UsbUi(QObject *parent = NULL); 00050 00054 virtual ~UsbUi(); 00055 00056 signals: 00058 void dialogShown(); 00059 00060 private slots: 00062 virtual void retranslateUi(); 00064 00065 #ifdef HAVE_QMSYSTEM 00066 00069 void applyCurrentUSBMode(); 00070 00076 void applyUSBMode(MeeGo::QmUSBMode::Mode mode); 00077 00081 void setRequestedUSBMode(); 00082 #endif 00083 00086 void setOviSuiteMode(); 00087 00091 void setMassStorageMode(); 00092 00096 void setSDKMode(); 00097 00101 void showDialog(); 00102 00108 void showError(const QString &errorCode); 00109 00111 void updateSDKItemVisibility(); 00112 00113 private: 00114 #ifdef HAVE_QMSYSTEM 00115 00120 void showNotification(MeeGo::QmUSBMode::Mode mode); 00121 #endif 00122 00124 void hideDialog(bool acceptDialog); 00125 00126 #ifdef HAVE_QMSYSTEM 00127 MeeGo::QmUSBMode *usbMode; 00128 MeeGo::QmUSBMode::Mode requestedUSBMode; 00129 MeeGo::QmLocks *locks; 00130 #endif 00131 00133 static QMap<QString, QString> errorCodeToTranslationID; 00134 00136 MGConfItem *developerMode; 00137 00139 QGraphicsLinearLayout *layout; 00140 00142 MLabel *chargingLabel; 00143 00145 MBasicListItem *massStorageItem; 00146 00148 MBasicListItem *oviSuiteItem; 00149 00151 MBasicListItem *sdkItem; 00152 00153 #ifdef UNIT_TEST 00154 friend class Ut_UsbUi; 00155 #endif 00156 }; 00157 00158 #endif
Copyright © 2011 Nokia Corporation | Generated on Tue Aug 30 2011 16:38:12 Doxygen 1.7.1 |
MeeGo Touch |