mmsharing/mmshavailability/tsrc/ut_availability/Stubs/inc/musavaavailabilityobserverimp.h
changeset 15 ccd8e69b5392
parent 2 b31261fd4e04
child 20 e8be2c2e049d
child 22 496ad160a278
equal deleted inserted replaced
2:b31261fd4e04 15:ccd8e69b5392
     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:  This is implementation class of availability setting class. 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __MUSAVAAVAILABILITYOBSERVERIMP_H__
       
    20 #define __MUSAVAAVAILABILITYOBSERVERIMP_H__
       
    21 
       
    22 //  INCLUDES
       
    23 #include "musavaavailabilityobserver.h"
       
    24 
       
    25 #include <e32base.h>
       
    26 #include <e32std.h>
       
    27 
       
    28 class MMusAvaObserver;
       
    29 
       
    30 /**
       
    31  *  This class Implements mandatory setting baste behavior which is 
       
    32  *  need for availability report.
       
    33  *
       
    34  *  CMusAvaAvailabilityObserverImps is implementation class for madatory 
       
    35  *  setting which are needed for availability report. 
       
    36  *  class represent the interface of application.
       
    37  *
       
    38  *  @lib musavailabilityplugin.lib
       
    39  *  @since S60 v3.2
       
    40  */
       
    41 
       
    42 class CMusAvaAvailabilityObserverImp : public CBase,
       
    43                                        public MMusAvaAvailabilityObserver
       
    44 	{
       
    45 public:
       
    46     
       
    47 	/**
       
    48      * Two-phased constructor
       
    49      *
       
    50      * @since S60 v3.2
       
    51      * @param aDefaultImp Pointer to observer interface 
       
    52      * @return Returns pointer to CMusAvaAvailabilityObserverImp object
       
    53      */
       
    54      
       
    55 	static CMusAvaAvailabilityObserverImp* NewL();
       
    56 	
       
    57 	/**
       
    58      * Destructor
       
    59      *
       
    60      * @since S60 v3.2
       
    61      * @param 
       
    62      * @return 
       
    63      */
       
    64 
       
    65 	~CMusAvaAvailabilityObserverImp();
       
    66 	
       
    67 protected:
       
    68 	/**
       
    69      * Constructor
       
    70      *
       
    71      * @since S60 v3.2
       
    72      * @param aDefaultImp Pointer to observer interface 
       
    73      * @return 
       
    74      */
       
    75 
       
    76 	CMusAvaAvailabilityObserverImp( );
       
    77 	
       
    78     /**
       
    79      * Perform the second phase construction of a
       
    80      *             CMusAvaAvailabilityObserverImp object
       
    81      *
       
    82      * @since S60 v3.2
       
    83      * @param 
       
    84      * @return 
       
    85      */
       
    86 
       
    87 	void ConstructL();
       
    88 	
       
    89                            
       
    90 // from base class MMusAvaAvailabilitySettingObserver
       
    91 
       
    92 public:	
       
    93 
       
    94     /**
       
    95      * Availability report
       
    96      *
       
    97      * @since  S60 v3.2
       
    98      * @param aName Availability name
       
    99      * @param aStatus New status for availability.
       
   100      */
       
   101     virtual void AvailabilityChanged(
       
   102         MMusAvaObserver::TAvailabilityName aName,
       
   103         MMusAvaObserver::TAvailabilityStatus aStatus );
       
   104 	
       
   105 	/**
       
   106      * Availability report
       
   107      *
       
   108      * @since  S60 v3.2
       
   109      * @param aName Availability name
       
   110      * @param aStatus New status for availability.
       
   111      */
       
   112     virtual void AvailabilityError(
       
   113         MMusAvaObserver::TAvailabilityName aName,
       
   114         MMusAvaObserver::TAvailabilityStatus aStatus );
       
   115         
       
   116     virtual TBool Available( 
       
   117         MMusAvaObserver::TAvailabilityName aAvailability );
       
   118         
       
   119         
       
   120     virtual MMusAvaObserver::TAvailabilityStatus AvailabilityPluginState();
       
   121 
       
   122      
       
   123      /**
       
   124      * Clear atributes
       
   125      *
       
   126      * @since  S60 v3.2
       
   127      * @param 
       
   128      * @param 
       
   129      * @return      
       
   130      */                        
       
   131     void Clear();
       
   132     
       
   133     
       
   134     MMusAvaObserver::TAvailabilityStatus iStatus;
       
   135     MMusAvaObserver::TAvailabilityName iName;
       
   136     TInt iError;
       
   137 	};
       
   138 
       
   139 #endif
       
   140