localisation/apparchitecture/inc/ServiceRegistry.h
branchSymbian2
changeset 1 8758140453c0
child 6 c108117318cb
equal deleted inserted replaced
0:e8c1ea2c6496 1:8758140453c0
       
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Symbian Foundation License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 
       
    17 #if !defined (__SERVICE_REGISTRY_H__)
       
    18 #define __SERVICE_REGISTRY_H__
       
    19 
       
    20 #include <e32base.h>
       
    21 #include <apgcli.h>
       
    22 
       
    23 /**
       
    24 The Service Registry stores associations between (service,datatype) pairs and
       
    25 applications. The (service,datatype) pair is the primary key for the registry.
       
    26 
       
    27 @publishedPartner
       
    28 @released
       
    29 */
       
    30 class CServiceRegistry : public CBase
       
    31 	{
       
    32 public:
       
    33 	IMPORT_C static CServiceRegistry* NewL();
       
    34 	IMPORT_C ~CServiceRegistry();
       
    35 	
       
    36 private:
       
    37 	CServiceRegistry();
       
    38 	void ConstructL();
       
    39 	
       
    40 public:
       
    41 	IMPORT_C TInt SetDefault(TUid aServiceUid, const TDataType& aDataType, 
       
    42 		TUid aDefaultAppUid);
       
    43 	IMPORT_C TInt RemoveEntry(TUid aServiceUid, const TDataType& aDataType);
       
    44 	IMPORT_C TInt GetDefault(TUid aServiceUid, const TDataType& aDataType,
       
    45 		TUid& aDefaultAppUid);
       
    46 	
       
    47 private:
       
    48 	/** The registry is currently only a thin wrapper around the 
       
    49 	RApaLsSession API */
       
    50 	RApaLsSession iApaLsSession;
       
    51 	};
       
    52 
       
    53 #endif