mmsharing/mmshavailability/inc/musavanetworkregistrationstatus.h
changeset 0 f0cf47e981f9
equal deleted inserted replaced
-1:000000000000 0:f0cf47e981f9
       
     1 /*
       
     2 * Copyright (c) 2005-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:  Provide interface for the client requestin availability class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __MUSAVANETWORKREGISTRATIONSTATUS_H__
       
    20 #define __MUSAVANETWORKREGISTRATIONSTATUS_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 CMusAvaNetworkRegistrationStatus : public CMusAvaTelephonyStatusBase 
       
    40 	{
       
    41 public:
       
    42 
       
    43     /**
       
    44      * Two-phased constructor.
       
    45      *
       
    46      * @since S60 v3.2
       
    47      */   
       
    48 	static CMusAvaNetworkRegistrationStatus* NewL( );
       
    49 
       
    50    
       
    51     /**
       
    52      * Default destructor
       
    53      *
       
    54      * @since S60 v3.2
       
    55      */   
       
    56     ~CMusAvaNetworkRegistrationStatus();   
       
    57     
       
    58 public: 
       
    59     
       
    60     /**
       
    61 	 * Current network registration status 
       
    62 	 *
       
    63 	 * @since S60 v3.2
       
    64      * @return TMobilePhoneRegistrationStatus 
       
    65      * EFalse otherwise
       
    66 	 */
       
    67     void NetworkRegistration(
       
    68         RMobilePhone::TMobilePhoneRegistrationStatus& aStatus );
       
    69               
       
    70 protected:
       
    71 
       
    72     /**
       
    73      * Constructor.
       
    74      *
       
    75      * @since S60 v3.2
       
    76      */   
       
    77     CMusAvaNetworkRegistrationStatus();
       
    78 
       
    79     /**
       
    80      * Second-phase constructor
       
    81      *
       
    82      * @since S60 v3.2
       
    83      */   
       
    84     void ConstructL();
       
    85     
       
    86       
       
    87 public: // from CMusAvaTelephonyStatusBase   
       
    88     
       
    89     /**
       
    90      *  
       
    91      *
       
    92      * @since  S60 v3.2
       
    93 	 * @param 
       
    94      */
       
    95     void TelephonyStatus();
       
    96     
       
    97 protected:
       
    98     
       
    99      /**
       
   100      *  
       
   101      *
       
   102      * @since  S60 v3.2
       
   103 	 * @param 
       
   104      */
       
   105     void NetworkRegistrationStatus( 
       
   106             RMobilePhone::TMobilePhoneRegistrationStatus aRegStatus );
       
   107     
       
   108     /**
       
   109      * descr
       
   110      *
       
   111      * @since S60 v3.2
       
   112      */   
       
   113     void RunL();
       
   114     
       
   115     
       
   116 private: // data
       
   117 
       
   118     
       
   119     /**
       
   120     * Reference to TMobilePhoneRegistrationStatus object
       
   121     */
       
   122     RMobilePhone::TMobilePhoneRegistrationStatus iRegistrationStatus;
       
   123     
       
   124     
       
   125     MUS_UNITTEST( UT_CMusAvaNetworkRegistrationStatus )
       
   126     MUS_UNITTEST( UT_CMusAvaConnectionAvailability )
       
   127     };
       
   128 
       
   129 
       
   130 #endif // __MUSAVANETWORKREGISTRATIONSTATUS_H__