installationservices/swcomponentregistry/inc_private/scrrepository.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 15:21:33 +0300
branchRCL_3
changeset 25 7333d7932ef7
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
* SCR Repository definition.
*
*/


/**
 @file
 @internalComponent
 @released
*/

#ifndef SCRREPOSITORY_H
#define SCRREPOSITORY_H

#include <centralrepository.h>

namespace Usif {

/** The UID of the SCR repository. */
const TUid KUidScrServerRepository = {0x10285bc0};  //271080384

/** The key for the AppUid range count. */
const TUint KScrAppUidRangeCount = {0x00000000};

/** The key for the AppUid ranges. */
const TUint KScrAppUidRanges = {0x00000100};

/** Singleton class controlling access to the repository. */
class CScrRepository : public CBase
    {
public:

    static CScrRepository* GetRepositoryInstanceL();

    TInt AppUidRangeCountL();

    void GetAppUidRangeL(TInt aNum, TUid& aRangeBegin, TUid& aRangeEnd);

    static void DeleteRepositoryInstance();
    
private:
    static void ConstructL();
    ~CScrRepository();
    
private:
    static CScrRepository* iInstance;
    static CRepository* iRepository;
    static bool iInstanceFlag;
    };
}

#endif /* SCRREPOSITORY_H */