2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: Serene property interface declaration
18 #ifndef M_SEN_PROPERTY_H
19 #define M_SEN_PROPERTY_H
28 * Gets the name of the property
30 * @return TPtrC8 containing name
32 virtual TPtrC8 Name() = 0;
35 * Gets the type of the property
37 * @return TPtrC8 containing type
39 virtual TPtrC8 Type() = 0;
42 * Gets the value of the property
44 * @return TPtrC8 containing value
46 virtual TPtrC8 Value() = 0;
49 * Gets the integer value of the property
51 * @param aValue A TInt reference to be filled in with the value of
53 * @return KErrNone if no error, or some of the system wide
56 virtual TInt IntValue(TInt& aValue) = 0;
59 * Gets the boolean value of the property
61 * @param aValue A TBool reference to be filled in with the value of
63 * @return KErrNone if no error, or some of the system wide
66 virtual TInt BoolValue(TBool& aValue) = 0;
69 * Populates given array with the tokens delimited by given delimiter.
70 * Note! Ownership of the TPtrC8 pointers is transfered to the caller.
71 * @param aDelimiter Used delimiter.
72 * @param aTokens Array which will be populated by tokens.
73 * @return KErrNone if tokens were found.
74 * KErrNotFound if tokens were not found.
76 virtual TInt ValueTokensL(const TDesC8& aDelimiter,
77 RPointerArray<TPtrC8>& aTokens) = 0;
81 #endif // M_SEN_PROPERTY_H