photosgallery/viewframework/tvout/inc/glxactivecallback.h
changeset 0 4e91876724a2
equal deleted inserted replaced
-1:000000000000 0:4e91876724a2
       
     1 /*
       
     2 * Copyright (c) 2008-2009 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:    Handles & propogates UI state change notifications.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CGLXACTIVE_CALLBACK_H
       
    20 #define CGLXACTIVE_CALLBACK_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <aknapp.h>
       
    24 
       
    25 // CLASS DECLARATION
       
    26 
       
    27 class CGlxActiveCallBack : public CActive
       
    28     { 
       
    29     public:
       
    30         CGlxActiveCallBack( TCallBack aCallBack, TInt aPriority): CActive(aPriority), 
       
    31                                                                   iCallBack(aCallBack) {};
       
    32         CGlxActiveCallBack();
       
    33     	
       
    34     public: // Functions from base classes
       
    35 		void SetActive() { CActive::SetActive();}; 
       
    36 		void RunL() { iCallBack.CallBack();};
       
    37  		void DoCancel() {};
       
    38  		
       
    39    	private: // Data
       
    40 		TCallBack iCallBack;
       
    41     };
       
    42 
       
    43 #endif // CGLXACTIVE_CALLBACK_H
       
    44 
       
    45 // End of File
       
    46