mmsharing/mmshavailability/inc/musavanetworkmodestatus.h
changeset 0 f0cf47e981f9
equal deleted inserted replaced
-1:000000000000 0:f0cf47e981f9
       
     1 /*
       
     2 * Copyright (c) 2005-2006 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:  Provide interface for the client requestin availability class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __MUSAVANETWORKMODESTATUS_H__
       
    20 #define __MUSAVANETWORKMODESTATUS_H__
       
    21 
       
    22 #include "musavatelephonystatusbase.h"
       
    23 #include "musunittesting.h"
       
    24 
       
    25 #include <e32def.h>
       
    26 #include <e32base.h>
       
    27 #include <e32property.h>
       
    28 #include <etel.h>
       
    29 #include <etelmm.h>
       
    30 
       
    31 
       
    32 /**
       
    33  *  This class monitors the phone status and resolves the contact 
       
    34  *  information of the remote host in case of a connected cs call. 
       
    35  *
       
    36  *  @lib musavailabilityplugin.lib
       
    37  *  @since S60 v3.2
       
    38  */
       
    39 class CMusAvaNetworkModeStatus : public CMusAvaTelephonyStatusBase 
       
    40 	{
       
    41 public:
       
    42 
       
    43     /**
       
    44      * Two-phased constructor.
       
    45      *
       
    46      * @since S60 v3.2
       
    47      */   
       
    48 	static CMusAvaNetworkModeStatus* NewL( );
       
    49 
       
    50    
       
    51     /**
       
    52      * Default destructor
       
    53      *
       
    54      * @since S60 v3.2
       
    55      */   
       
    56     ~CMusAvaNetworkModeStatus();   
       
    57     
       
    58 public: 
       
    59     
       
    60     /**
       
    61 	 * Test current network mode 
       
    62 	 *
       
    63 	 * @since S60 v3.2
       
    64      * @return Returns the network mode      
       
    65 	 */    
       
    66     RMobilePhone::TMobilePhoneNetworkMode PhoneNetworkMode( );
       
    67               
       
    68 protected:
       
    69 
       
    70     /**
       
    71      * Constructor.
       
    72      *
       
    73      * @since S60 v3.2
       
    74      */   
       
    75     CMusAvaNetworkModeStatus();
       
    76 
       
    77     /**
       
    78      * Second-phase constructor
       
    79      *
       
    80      * @since S60 v3.2
       
    81      */   
       
    82     void ConstructL();
       
    83     
       
    84 public: // from CMusAvaTelephonyStatusBase   
       
    85     
       
    86     /**
       
    87      *  
       
    88      *
       
    89      * @since  S60 v3.2
       
    90 	 * @param 
       
    91      */
       
    92     void TelephonyStatus();
       
    93     
       
    94 protected:
       
    95     
       
    96     /**
       
    97 	 *
       
    98 	 * @since S60 v3.2
       
    99      *   
       
   100 	 */   
       
   101     void PhoneNetworkModeStatus( RMobilePhone::TMobilePhoneNetworkMode aStatus);
       
   102     
       
   103 protected:  // from CActive
       
   104 
       
   105     void RunL();
       
   106     
       
   107     void DoCancel();
       
   108     
       
   109 private: // data
       
   110 
       
   111     
       
   112    /**
       
   113     * Reference to TMobilePhoneNetworkMode object
       
   114     */
       
   115     RMobilePhone::TMobilePhoneNetworkMode iNetworkMode;
       
   116     
       
   117     
       
   118     MUS_UNITTEST( UT_CMusAvaNetworkModeStatus )
       
   119     };
       
   120 
       
   121 
       
   122 #endif // __MUSAVANETWORKMODESTATUS_H__