diff -r 5b3b2fa8c3ec -r f42d9a78f435 messagingapp/msgnotifications/msgerrorwatcher/inc/msgerrorroamingobserver.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/messagingapp/msgnotifications/msgerrorwatcher/inc/msgerrorroamingobserver.h Tue Aug 31 18:53:38 2010 +0530 @@ -0,0 +1,106 @@ +/* +* Copyright (c) 2010 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: +* CMsgErrorRoamingObserver declaration file +* +*/ + + + +#ifndef MSGERRORROAMINGOBSERVER_H +#define MSGERRORROAMINGOBSERVER_H + +// INCLUDES +#include +#include //RTelServer +#include + + + +// FORWARD DECLARATIONS +class CMsgErrorWatcherPrivate; + +// CLASS DECLARATION + +/** +* CMsgErrorRoamingObserver +*/ +class CMsgErrorRoamingObserver : public CActive + { + public: // Constructors and destructor + + /** + * Two-phased constructor. + * + * @param aWatcher A pointer to CMsgErrorWatcherPrivate + */ + static CMsgErrorRoamingObserver* NewL( CMsgErrorWatcherPrivate& aWatcher ); + + /** + * Destructor. + */ + virtual ~CMsgErrorRoamingObserver(); + + private: + + /** + * Checks whether roaming status has changed + * from home network to roaming or vice versa. + * If so, calls CMsgErrorWatcherPrivate::HandleRoamingEventL + */ + void UpdateRoamingStatusL(); + + /** + * By default Symbian OS constructor is private. + */ + void ConstructL(); + + /** + * Private C++ constructor. + * + * @param aWatcher A pointer to CMsgErrorWatcherPrivate + */ + CMsgErrorRoamingObserver( CMsgErrorWatcherPrivate& aWatcher ); + + private: + + /** + * For starting the active object. + */ + void Start(); + + /** + * From CActive + */ + void DoCancel(); + + /** + * From CActive + */ + void RunL(); + + private: // Data + + CMsgErrorWatcherPrivate& iWatcher; + TBool iRoaming; + RMobilePhone iMobilePhone; + RTelServer iETelServer; + RMobilePhone::TMobilePhoneRegistrationStatus iRegStatus; + TInt iRequestId; + + }; + +#endif // MSGERRORROAMINGOBSERVER_H + +// End of File