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 "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
21 #if !defined(__SS_CONNSETTINGS_H__)
22 #define __SS_CONNSETTINGS_H__
28 Base class that any client wishing to access underlying comms database settings
31 @see CConnectionProvider
33 class CConnectionSettings : public CBase
36 IMPORT_C CConnectionSettings();
38 IMPORT_C void GetBoolSettingL(const TDesC& aSettingName, TBool& aValue, const RMessagePtr2* aMessage );
39 IMPORT_C void GetDes16SettingL(const TDesC& aSettingName, TDes16& aValue, const RMessagePtr2* aMessage );
40 IMPORT_C void GetDes8SettingL(const TDesC& aSettingName, TDes8& aValue, const RMessagePtr2* aMessage );
41 IMPORT_C void GetIntSettingL(const TDesC& aSettingName, TUint32& aValue, const RMessagePtr2* aMessage );
42 IMPORT_C HBufC* GetLongDesSettingLC(const TDesC& aSettingName, const RMessagePtr2* aMessage );
46 Override this to retrieve a boolean value from the database with the given field name
48 @param aSettingName Field name
49 @param aValue Reference to a boolean that will contain the value on call success
50 @param aMessage RMessage pointer required for secure session communication
52 virtual void DoGetBoolSettingL(const TDesC& aSettingName, TBool& aValue, const RMessagePtr2* aMessage ) = 0;
55 Override this to retrieve a unicode string value from the database with the given field name
57 @param aSettingName Field name
58 @param aValue Reference to a string that will contain the value on call success
59 @param aMessage RMessage pointer required for secure session communication
61 virtual void DoGetDes16SettingL(const TDesC& aSettingName, TDes16& aValue, const RMessagePtr2* aMessage ) = 0;
64 Override this to retrieve a 8-bit string value from the database with the given field name
66 @param aSettingName Field name
67 @param aValue Reference to a string that will contain the value on call success
68 @param aMessage RMessage pointer required for secure session communication
70 virtual void DoGetDes8SettingL(const TDesC& aSettingName, TDes8& aValue, const RMessagePtr2* aMessage ) = 0;
73 Override this to retrieve a unsigned 32-bit int value from the database with the given field name
75 @param aSettingName Field name
76 @param aValue Reference to a TUint32 that will contain the value on call success
77 @param aMessage RMessage pointer required for secure session communication
79 virtual void DoGetIntSettingL(const TDesC& aSettingName, TUint32& aValue, const RMessagePtr2* aMessage ) = 0;
82 Override this to retrieve a string value as a heap allocated buffer from the database with the given field name
84 @param aSettingName Field name
85 @param aMessage RMessage pointer required for secure session communication
86 @return Pointer to the dynamically allocated string
88 virtual HBufC* DoGetLongDesSettingLC(const TDesC& aSettingName, const RMessagePtr2* aMessage ) = 0;
91 #endif // __SS_CONNSETTINGS_H__