diff -r 7d48bed6ce0c -r 987c9837762f convergedcallengine/csplugin/inc/cspcipheringstatusmonitor.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/convergedcallengine/csplugin/inc/cspcipheringstatusmonitor.h Wed Sep 01 12:15:03 2010 +0100 @@ -0,0 +1,121 @@ +/* +* Copyright (c) 2007 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: Declarations for class CSPCipheringStatusMonitor +* +*/ + + +#ifndef CSPCIPHERINGSTATUSMONITOR_H +#define CSPCIPHERINGSTATUSMONITOR_H + +// INCLUDES +#include +#include + +#include "cspconsts.h" + + +// FORWARD DECLARATIONS +class RMmCustomAPI; +class MCSPSecuritySettingObserver; + +// CLASS DECLARATION + + +class CSPCipheringStatusMonitor : public CActive + { + public: //Constructors and descructor + + /** + * C++ default constructor + */ + CSPCipheringStatusMonitor( RMmCustomAPI& aMmCustom, + MCSPSecuritySettingObserver& aObs ); + + /** + * Destructor. + */ + ~CSPCipheringStatusMonitor(); + + public: + + static CSPCipheringStatusMonitor* NewL( RMmCustomAPI& aMmCustom, + MCSPSecuritySettingObserver& aObs ); + + /** + * Starts monitoring the CW notifications + */ + void StartMonitoring(); + + /** + * Network security status. + * @return secured status + */ + TBool NetworkSecurityStatus() const; + + /** + * Secure specified. + * @return secure specified status + */ + TBool SecureSpecified() const; + + protected: // From CActive + + /** + * Cancels asyncronous request(s). + */ + void DoCancel(); + + /** + * Informs object that asyncronous request is ready. + */ + void RunL(); + + private: // data + + /** + * Ciphering info + */ + RMmCustomAPI::TCipheringInfo iCipheringInfo; + + /** + * CustomAPI handle + */ + RMmCustomAPI& iMmCustom; + + /** + * Security setting observer. + */ + MCSPSecuritySettingObserver &iObserver; + + /** + * indicates if ciphering status was retreived for the first time + */ + TBool iIsInitialised; + + /** + * Call secure status. + */ + TBool iCallsSecured; + + /** + * Call secure specified status. + */ + TBool iSecureSpecified; + + }; + +#endif // CSPCIPHERINGSTATUSMONITOR_H + +// End of File