diff -r a3a1ae9acec6 -r da5135c61bad meetingrequest/mrgui/inc/cmrsystemnotifier.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/meetingrequest/mrgui/inc/cmrsystemnotifier.h Wed Mar 31 21:08:33 2010 +0300 @@ -0,0 +1,69 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Response dialog's custom control implementation +* +*/ + + +#ifndef CMRSYSTEMNOTIFIER_H +#define CMRSYSTEMNOTIFIER_H + +#include + +class CEnvironmentChangeNotifier; +class CESMRFieldEventQueue; + +/** + * CMRSystemNotifier listen system events and sends MRUI events. + */ +NONSHARABLE_CLASS( CMRSystemNotifier ) : public CBase + { +public: // Contstruction and destruction + /** + * Creates and initialzes new CMRSystemNotifier object. + * Ownership is transferred to caller. + * @param aEventQueue Reference to event queue + */ + static CMRSystemNotifier* NewL( + CESMRFieldEventQueue& aEventQueue ); + + /** + * C++ destructor + */ + ~CMRSystemNotifier(); + + /** + * Starts system notifier + */ + void StartL(); + + /** + * Stops system notifier + */ + void Stop(); + +private: // Implementation + CMRSystemNotifier( CESMRFieldEventQueue& aEventQueue ); + void ConstructL(); + static TInt EnvChangeCallbackL( TAny* aThisPtr ); + void DoEnvChangeL(); + +private: // Data + /// Own: System notifier + CEnvironmentChangeNotifier* iSystemNotifier; + /// Ref: Reference to event queue + CESMRFieldEventQueue& iEventQueue; + }; + +#endif // CMRSYSTEMNOTIFIER_H