24
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 Sony Ericsson Mobile Communications AB
|
|
3 |
* All rights reserved.
|
|
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".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Sony Ericsson Mobile Communications AB - initial contribution.
|
|
11 |
* Nokia Corporation - additional changes.
|
|
12 |
*
|
|
13 |
* Contributors:
|
|
14 |
*
|
|
15 |
* Description:
|
|
16 |
* Implements the Enhanced SMS User Prompt Information Element.
|
|
17 |
*
|
|
18 |
*/
|
|
19 |
|
|
20 |
|
|
21 |
/**
|
|
22 |
* @file
|
|
23 |
* @internalComponent
|
|
24 |
* Defines CEmsUserprompt class
|
|
25 |
*/
|
|
26 |
|
|
27 |
#ifndef __EMSUserPromptIE_H__
|
|
28 |
#define __EMSUserPromptIE_H__
|
|
29 |
|
|
30 |
|
|
31 |
#include <emsinformationelement.h>
|
|
32 |
|
|
33 |
class CEmsUserPrompt : public CEmsInformationElement
|
|
34 |
/**
|
|
35 |
* CEmsUserPrompt wraps the creation & modification of the user prompt
|
|
36 |
* information elements into a single class.
|
|
37 |
*
|
|
38 |
* Format of EMS Object
|
|
39 |
* ------------------------------------------
|
|
40 |
*
|
|
41 |
* Position (Octet) Bit Description
|
|
42 |
* 1 Object count
|
|
43 |
*
|
|
44 |
* @see 3gpp Spec V5 section 9.2.3.24.10.1.10
|
|
45 |
* @internalComponent
|
|
46 |
*/
|
|
47 |
{
|
|
48 |
public:
|
|
49 |
enum {EIESize=1};
|
|
50 |
|
|
51 |
public:
|
|
52 |
IMPORT_C static CEmsUserPrompt* NewL(TUint aObjectCount=1);
|
|
53 |
IMPORT_C CEmsInformationElement* DuplicateL() const;
|
|
54 |
IMPORT_C void CopyL(const CEmsUserPrompt& aSrc);
|
|
55 |
IMPORT_C TUint ObjectCount() const;
|
|
56 |
IMPORT_C void SetObjectCount(TUint aObjectCount);
|
|
57 |
|
|
58 |
private:
|
|
59 |
virtual void EncodeBodyL(TPtr8 aPtr, TBool aIsForSerialisation) const;
|
|
60 |
virtual void DecodeBodyL(const TPtrC8 aPtr, TBool aIsFromSerialisation);
|
|
61 |
CEmsUserPrompt(TUint aObjectCount = 0);
|
|
62 |
TUint iObjectCount;
|
|
63 |
};
|
|
64 |
|
|
65 |
#endif // __EMSUserPromptIE_H__
|