terminalsecurity/SCP/SCPDatabase/inc/SCPParamDBController.h
changeset 0 b497e44ab2fc
equal deleted inserted replaced
-1:000000000000 0:b497e44ab2fc
       
     1 /*
       
     2 * Copyright (c) 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:
       
    15 *
       
    16 */
       
    17 #ifndef __CSCPARAMDBCONTROLLER_H_
       
    18 #define __CSCPARAMDBCONTROLLER_H_
       
    19 
       
    20 #include "SCPParamDB.h"
       
    21 
       
    22 NONSHARABLE_CLASS(CSCPParamDBController) : public CBase {
       
    23 public:
       
    24     ~CSCPParamDBController();
       
    25     
       
    26     IMPORT_C static CSCPParamDBController* NewL();
       
    27     
       
    28     IMPORT_C static CSCPParamDBController* NewLC();
       
    29 
       
    30     IMPORT_C TInt SetValueL(TInt aParamID, const TInt32 aValue, const TInt32 aApp);
       
    31     
       
    32     IMPORT_C TInt SetValuesL(TInt aParamID, const RPointerArray <HBufC>& aParamValues, const TInt32 aApp);
       
    33 
       
    34     IMPORT_C TInt GetValueL(TInt aParamID, TInt32& aValue, TInt32& aApp);
       
    35     
       
    36     IMPORT_C TInt GetValuesL(TInt aParamID, RPointerArray <HBufC>& aParamValues, const TInt32 aApp);
       
    37     
       
    38     IMPORT_C TInt ListApplicationsL(RArray <TUid>& aIDArray);
       
    39     
       
    40     IMPORT_C TBool IsParamValueSharedL(HBufC* aParamValue, const TInt32 aApp);
       
    41     
       
    42     IMPORT_C TInt DropValuesL(TInt aParamID, const TInt32 aApp=-1);
       
    43     
       
    44     IMPORT_C TInt DropValuesL(TInt aParamID, RPointerArray <HBufC>& aParamValues, const TInt32 aApp=-1);
       
    45     
       
    46     IMPORT_C TInt ListParamsUsedByAppL(RArray <TInt>& aParamIds, const TInt32 aApp=-1);
       
    47 
       
    48     IMPORT_C TInt ListEntriesL(RArray <TInt32>& aNumCols, RPointerArray <HBufC>& aDesCols, const TInt32 aApp=-1);
       
    49 
       
    50 private:
       
    51     CSCPParamDBController() : iParamDB(NULL) { }
       
    52     void ConstructL();
       
    53 
       
    54 private:
       
    55     CSCPParamDB* iParamDB;
       
    56 };
       
    57 
       
    58 #endif // __CSCPARAMDB_H_