uiacceltk/hitchcock/plugins/alftranseffect/alftranseffectplugin/inc/repositoryhandler.h
changeset 0 15bf7259bb7c
equal deleted inserted replaced
-1:000000000000 0:15bf7259bb7c
       
     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:   Transition server repository handler.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_REPOSITORY_HANDLER_H
       
    20 #define C_REPOSITORY_HANDLER_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 class CRepository;
       
    25 
       
    26 NONSHARABLE_CLASS(CRepositoryHandler) : public CActive
       
    27     {
       
    28     CRepositoryHandler(TInt aPriority, const TUid& aRepository, TInt aKey);
       
    29     void ConstructL();
       
    30 public:    
       
    31 
       
    32     static CRepositoryHandler* NewL(TInt aPriority, const TUid& aRepository, TUint32 aKey);
       
    33     ~CRepositoryHandler();
       
    34     TInt GetValue(TInt& aValue);
       
    35     TInt SetValue(TInt aValue);
       
    36 private:
       
    37 	/**
       
    38      * From CActive
       
    39      * @since S60 3.2
       
    40      *
       
    41     */  
       
    42     void RunL();
       
    43 
       
    44 	/**
       
    45      * From CActive
       
    46      * @since S60 3.2
       
    47      *
       
    48     */  
       
    49     void DoCancel();
       
    50 
       
    51 private: //data
       
    52 	CRepository* iCrep;
       
    53 
       
    54     TUid iRepository;
       
    55     TInt iKey;
       
    56     TInt iValue;
       
    57     TInt iError;
       
    58     };
       
    59 
       
    60 #endif //C_REPOSITORY_HANDLER_H