author | William Roberts <williamr@symbian.org> |
Wed, 31 Mar 2010 12:33:34 +0100 | |
branch | Symbian3 |
changeset 4 | 837f303aceeb |
parent 2 | 2fe1408b6811 |
permissions | -rw-r--r-- |
williamr@2 | 1 |
/* |
williamr@2 | 2 |
* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). |
williamr@2 | 3 |
* All rights reserved. |
williamr@2 | 4 |
* This component and the accompanying materials are made available |
williamr@4 | 5 |
* under the terms of "Eclipse Public License v1.0" |
williamr@2 | 6 |
* which accompanies this distribution, and is available |
williamr@4 | 7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
williamr@2 | 8 |
* |
williamr@2 | 9 |
* Initial Contributors: |
williamr@2 | 10 |
* Nokia Corporation - initial contribution. |
williamr@2 | 11 |
* |
williamr@2 | 12 |
* Contributors: |
williamr@2 | 13 |
* |
williamr@2 | 14 |
* Description: Serene property interface declaration |
williamr@2 | 15 |
* |
williamr@2 | 16 |
*/ |
williamr@2 | 17 |
|
williamr@2 | 18 |
#ifndef M_SEN_PROPERTY_H |
williamr@2 | 19 |
#define M_SEN_PROPERTY_H |
williamr@2 | 20 |
|
williamr@2 | 21 |
// INCLUDES |
williamr@2 | 22 |
#include <e32std.h> |
williamr@2 | 23 |
|
williamr@2 | 24 |
class MSenProperty |
williamr@2 | 25 |
{ |
williamr@2 | 26 |
public: |
williamr@2 | 27 |
/** |
williamr@2 | 28 |
* Gets the name of the property |
williamr@2 | 29 |
* |
williamr@2 | 30 |
* @return TPtrC8 containing name |
williamr@2 | 31 |
*/ |
williamr@2 | 32 |
virtual TPtrC8 Name() = 0; |
williamr@2 | 33 |
|
williamr@2 | 34 |
/** |
williamr@2 | 35 |
* Gets the type of the property |
williamr@2 | 36 |
* |
williamr@2 | 37 |
* @return TPtrC8 containing type |
williamr@2 | 38 |
*/ |
williamr@2 | 39 |
virtual TPtrC8 Type() = 0; |
williamr@2 | 40 |
|
williamr@2 | 41 |
/** |
williamr@2 | 42 |
* Gets the value of the property |
williamr@2 | 43 |
* |
williamr@2 | 44 |
* @return TPtrC8 containing value |
williamr@2 | 45 |
*/ |
williamr@2 | 46 |
virtual TPtrC8 Value() = 0; |
williamr@2 | 47 |
|
williamr@2 | 48 |
/** |
williamr@2 | 49 |
* Gets the integer value of the property |
williamr@2 | 50 |
* |
williamr@2 | 51 |
* @param aValue A TInt reference to be filled in with the value of |
williamr@2 | 52 |
* the property. |
williamr@2 | 53 |
* @return KErrNone if no error, or some of the system wide |
williamr@2 | 54 |
* error codes. |
williamr@2 | 55 |
*/ |
williamr@2 | 56 |
virtual TInt IntValue(TInt& aValue) = 0; |
williamr@2 | 57 |
|
williamr@2 | 58 |
/** |
williamr@2 | 59 |
* Gets the boolean value of the property |
williamr@2 | 60 |
* |
williamr@2 | 61 |
* @param aValue A TBool reference to be filled in with the value of |
williamr@2 | 62 |
* the property. |
williamr@2 | 63 |
* @return KErrNone if no error, or some of the system wide |
williamr@2 | 64 |
* error codes. |
williamr@2 | 65 |
*/ |
williamr@2 | 66 |
virtual TInt BoolValue(TBool& aValue) = 0; |
williamr@2 | 67 |
|
williamr@2 | 68 |
/** |
williamr@2 | 69 |
* Populates given array with the tokens delimited by given delimiter. |
williamr@2 | 70 |
* Note! Ownership of the TPtrC8 pointers is transfered to the caller. |
williamr@2 | 71 |
* @param aDelimiter Used delimiter. |
williamr@2 | 72 |
* @param aTokens Array which will be populated by tokens. |
williamr@2 | 73 |
* @return KErrNone if tokens were found. |
williamr@2 | 74 |
* KErrNotFound if tokens were not found. |
williamr@2 | 75 |
*/ |
williamr@2 | 76 |
virtual TInt ValueTokensL(const TDesC8& aDelimiter, |
williamr@2 | 77 |
RPointerArray<TPtrC8>& aTokens) = 0; |
williamr@2 | 78 |
|
williamr@2 | 79 |
}; |
williamr@2 | 80 |
|
williamr@2 | 81 |
#endif // M_SEN_PROPERTY_H |
williamr@2 | 82 |
|
williamr@2 | 83 |
// End of File |
williamr@2 | 84 |