brandingserver/BSClient/cbsbrandobserver.h
changeset 31 9dbc70490d9a
equal deleted inserted replaced
30:1fa9b890f29c 31:9dbc70490d9a
       
     1 /*
       
     2 * Copyright (c) 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 the License "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:  CBSBrandObserver.h
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __CBSBRANDOBSERVER_H__
       
    21 #define __CBSBRANDOBSERVER_H__
       
    22 #include <e32std.h>
       
    23 #include <e32base.h>
       
    24 
       
    25 class MBSBrandChangeObserver;
       
    26 class MBSBackupRestoreStateObserver;
       
    27 class MBSBrandObserverRegistrar;
       
    28 
       
    29 /**
       
    30  *
       
    31  */
       
    32 NONSHARABLE_CLASS( CBSBrandObserver ): public CActive
       
    33     {
       
    34 	public:
       
    35 		/**
       
    36 		* Two-phased constructor.
       
    37 		*/
       
    38 		static CBSBrandObserver* NewL( MBSBrandChangeObserver* aObserver,
       
    39 									   MBSBackupRestoreStateObserver* aBackupObserver,	
       
    40 									   MBSBrandObserverRegistrar* aRegistrar );
       
    41 
       
    42     	virtual ~CBSBrandObserver();
       
    43 
       
    44     public: // From CActive
       
    45 
       
    46         void RunL();   
       
    47 		void DoCancel();
       
    48 
       
    49 	private:
       
    50 		CBSBrandObserver( MBSBrandChangeObserver* aObserver,
       
    51 						  MBSBackupRestoreStateObserver* aBackupObserver,	
       
    52 						  MBSBrandObserverRegistrar* aRegistrar );
       
    53 
       
    54 
       
    55     	void ConstructL();
       
    56 
       
    57 	private:
       
    58 
       
    59 
       
    60 	private: // data
       
    61 	
       
    62 		// doesn't own: observer
       
    63 		MBSBrandChangeObserver* iObserver ;
       
    64 		
       
    65 		// doesn't own: observer
       
    66 		MBSBackupRestoreStateObserver* iBackupObserver ;
       
    67 		
       
    68 		// doesn't own: registrar
       
    69 		MBSBrandObserverRegistrar* iRegistrar;
       
    70 		
       
    71 		TBool iContinueBackupStateObserving ;
       
    72 		TBool iContinueDataUpdateObserving ;
       
    73     };
       
    74 
       
    75 #endif      //  __CBSBRANDOBSERVER_H__
       
    76 
       
    77 
       
    78 //  END OF FILE
       
    79