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