phoneplugins/csplugin/inc/cspcipheringstatusmonitor.h
changeset 21 92ab7f8d0eab
equal deleted inserted replaced
4:c84cf270c54f 21:92ab7f8d0eab
       
     1 /*
       
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Declarations for class CSPCipheringStatusMonitor
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CSPCIPHERINGSTATUSMONITOR_H
       
    20 #define CSPCIPHERINGSTATUSMONITOR_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <etelmm.h>
       
    25 
       
    26 #include "cspconsts.h"
       
    27 
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class RMmCustomAPI;
       
    31 class MCSPSecuritySettingObserver;
       
    32 
       
    33 // CLASS DECLARATION
       
    34 
       
    35 
       
    36 class CSPCipheringStatusMonitor : public CActive
       
    37     {
       
    38     public: //Constructors and descructor
       
    39 
       
    40         /**
       
    41         * C++ default constructor
       
    42         */
       
    43         CSPCipheringStatusMonitor( RMmCustomAPI& aMmCustom,
       
    44             MCSPSecuritySettingObserver& aObs );
       
    45 
       
    46         /**
       
    47         * Destructor.
       
    48         */
       
    49         ~CSPCipheringStatusMonitor();
       
    50 
       
    51     public:
       
    52 
       
    53         static CSPCipheringStatusMonitor* NewL( RMmCustomAPI& aMmCustom, 
       
    54             MCSPSecuritySettingObserver& aObs );
       
    55         
       
    56         /**
       
    57         * Starts monitoring the CW notifications
       
    58         */
       
    59         void StartMonitoring();
       
    60         
       
    61         /**
       
    62         * Network security status.
       
    63         * @return secured status
       
    64         */
       
    65         TBool NetworkSecurityStatus() const;
       
    66 
       
    67         /**
       
    68         * Secure specified.
       
    69         * @return secure specified status
       
    70         */        
       
    71         TBool SecureSpecified() const;        
       
    72         
       
    73     protected: // From CActive
       
    74     
       
    75         /**
       
    76         * Cancels asyncronous request(s).
       
    77         */
       
    78         void DoCancel();
       
    79 
       
    80         /**
       
    81         * Informs object that asyncronous request is ready.
       
    82         */
       
    83         void RunL();
       
    84         
       
    85     private: // data
       
    86 
       
    87         /**
       
    88         * Ciphering info 
       
    89         */
       
    90         RMmCustomAPI::TCipheringInfo iCipheringInfo; 
       
    91         
       
    92         /**
       
    93         * CustomAPI handle
       
    94         */        
       
    95         RMmCustomAPI& iMmCustom; 
       
    96         
       
    97         /**
       
    98         * Security setting observer.
       
    99         */
       
   100         MCSPSecuritySettingObserver &iObserver;
       
   101 
       
   102         /**
       
   103         * indicates if ciphering status was retreived for the first time
       
   104         */
       
   105         TBool iIsInitialised;
       
   106         
       
   107         /**
       
   108         * Call secure status.
       
   109         */
       
   110         TBool iCallsSecured;
       
   111         
       
   112         /**
       
   113         * Call secure specified status.
       
   114         */
       
   115         TBool iSecureSpecified;
       
   116 
       
   117     };
       
   118 
       
   119 #endif // CSPCIPHERINGSTATUSMONITOR_H
       
   120 
       
   121 // End of File