00001 // 00002 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 00003 // All rights reserved. 00004 // This component and the accompanying materials are made available 00005 // under the terms of "Eclipse Public License v1.0" 00006 // which accompanies this distribution, and is available 00007 // at the URL "http://www.eclipse.org/legal/epl-v10.html". 00008 // 00009 // Initial Contributors: 00010 // Nokia Corporation - initial contribution. 00011 // 00012 // Contributors: 00013 // 00014 // Description: 00015 // This example is used to demonstrate the utilities of the System State Manager 00016 // framework. 00017 00018 #ifndef __SSMANAGER_H__ 00019 #define __SSMANAGER_H__ 00020 00021 #include <e32cons.h> 00022 #include <ssm/ssmcommandlist.h> 00023 #include <ssm/ssmstatemanager.h> 00024 #include <ssm/ssmsystemwideproperty.h> 00025 00032 class CSysStateManagerExample : public CBase, public MSwpChangeNotificationSubscriber 00033 { 00034 public: 00035 static CSysStateManagerExample* NewLC(); 00036 ~CSysStateManagerExample(); 00037 void SSManagerL(); 00038 void RequestSwpChange(); 00039 void RequestSsChange(); 00040 void RequestSwpChangeWithNotificationL(); 00041 void RequestSsChangeWithNotification(); 00042 00043 //from MSwpChangeNotificationSubscriber 00044 void SwpChanged(TSsmSwp aSwp); 00045 private: 00046 CSysStateManagerExample(); 00047 public: 00048 CConsoleBase* iConsole; 00049 RSsmStateManager iSsmStateManager; 00050 }; 00051 00052 #endif //__SSMANAGER_H__
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.