mmsharing/mmshavailability/inc/musavatelephonystatusbase.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 __MUSAVATELEPHONYSTATUSBASE_H__
       
    20 #define __MUSAVATELEPHONYSTATUSBASE_H__
       
    21 
       
    22 #include "musunittesting.h"
       
    23 
       
    24 #include <e32def.h>
       
    25 #include <e32base.h>
       
    26 #include <e32property.h>
       
    27 #include <etel.h>
       
    28 #include <etelmm.h>
       
    29 
       
    30 class MMusAvaTelephonyStatusObserver;
       
    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 CMusAvaTelephonyStatusBase : public CActive 
       
    40 	{
       
    41 public:
       
    42    
       
    43     /**
       
    44      * Default destructor
       
    45      *
       
    46      * @since S60 v3.2
       
    47      */   
       
    48     ~CMusAvaTelephonyStatusBase();   
       
    49     
       
    50 public: 
       
    51     
       
    52     /**
       
    53      *  
       
    54      *
       
    55      * @since  S60 v3.2
       
    56 	 * @param 
       
    57      */
       
    58     void AddAdapterL( MMusAvaTelephonyStatusObserver& aAdapter );
       
    59       
       
    60      /**
       
    61      *  
       
    62      *
       
    63      * @since  S60 v3.2
       
    64 	 * @param 
       
    65      */
       
    66     void RemoveAdapter( MMusAvaTelephonyStatusObserver& aAdapter );
       
    67 
       
    68     
       
    69     /**
       
    70      *  
       
    71      *
       
    72      * @since  S60 v3.2
       
    73 	 * @param 
       
    74      */
       
    75     void virtual TelephonyStatus();
       
    76       
       
    77 protected: // from CActive
       
    78     
       
    79     /**
       
    80      * descr
       
    81      *
       
    82      * @since S60 v3.2
       
    83      */   
       
    84     void RunL();
       
    85     
       
    86     /**
       
    87      * descr
       
    88      *
       
    89      * @since S60 v3.2
       
    90      */   
       
    91     void DoCancel();
       
    92     
       
    93     /**
       
    94      * descr
       
    95      *
       
    96      * @since S60 v3.2
       
    97      */   
       
    98     TInt RunError( TInt aError );
       
    99     
       
   100 protected:
       
   101 
       
   102     /**
       
   103      * Constructor.
       
   104      *
       
   105      * @since S60 v3.2
       
   106      */   
       
   107     CMusAvaTelephonyStatusBase();
       
   108 
       
   109     
       
   110 protected: // data
       
   111 
       
   112     /**
       
   113      * Array of MMusAvaConnectionMonitorObserver the callback interfaces
       
   114      */
       
   115     RPointerArray<MMusAvaTelephonyStatusObserver> iObserver;  
       
   116     
       
   117     /**
       
   118     * Reference to RMobilePhone object
       
   119     */
       
   120     RMobilePhone iPhone;
       
   121     
       
   122     /**
       
   123     * Reference to RTelServer object
       
   124     */
       
   125     RTelServer iTelServer;
       
   126     
       
   127     
       
   128     MUS_UNITTEST( UT_CMusAvaTelephonyStatusBase )
       
   129     MUS_UNITTEST( UT_CMusAvaConnectionAvailability )
       
   130     };
       
   131 
       
   132 
       
   133 #endif // __MUSAVATELEPHONYSTATUSBASE_H__