![]() |
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 LOCKSCREENBUSINESSLOGIC_H 00020 #define LOCKSCREENBUSINESSLOGIC_H 00021 00022 #include <QObject> 00023 00024 #ifdef HAVE_QMSYSTEM 00025 #include <qmlocks.h> 00026 #include <qmdisplaystate.h> 00027 #endif 00028 00029 class LockScreenWindow; 00030 class EventEater; 00031 00032 class LockScreenBusinessLogic : public QObject 00033 { 00034 Q_OBJECT 00035 00036 public: 00037 LockScreenBusinessLogic(QObject* parent = 0); 00038 virtual ~LockScreenBusinessLogic(); 00039 00040 public slots: 00041 void toggleScreenLockUI(bool toggle); 00042 void toggleEventEater(bool toggle); 00043 00044 private slots: 00045 void unlockScreen(); 00046 void hideEventEater(); 00047 00048 #ifdef HAVE_QMSYSTEM 00049 void displayStateChanged(MeeGo::QmDisplayState::DisplayState state); 00050 void locksChanged(MeeGo::QmLocks::Lock what, MeeGo::QmLocks::State how); 00051 #endif 00052 00053 signals: 00054 void updateTime(); 00055 void unlockConfirmed(); 00056 void screenIsLocked(bool locked); 00057 00058 private: 00059 bool displayIsOn(); 00060 00061 LockScreenWindow *lockScreenWindow; 00062 EventEater *eventEaterWindow; 00063 00064 #ifdef HAVE_QMSYSTEM 00065 MeeGo::QmDisplayState displayState; 00066 MeeGo::QmLocks locks; 00067 #endif 00068 00069 #ifdef UNIT_TEST 00070 friend class Ut_LockScreenBusinessLogic; 00071 friend class Ft_LockScreenBusinessLogic; 00072 #endif 00073 }; 00074 00075 #endif
| Copyright © 2010 Nokia Corporation | Generated on Wed Nov 10 16:04:51 2010 Doxygen 1.6.1 |
MeeGo Touch |
