author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 15 Sep 2010 12:00:00 +0300 | |
branch | RCL_3 |
changeset 93 | b01126ce0bec |
parent 88 | 3321d3e205b6 |
child 102 | ba63c83f4716 |
permissions | -rw-r--r-- |
83 | 1 |
/* |
2 |
* Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies). |
|
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 |
* Nokia Corporation - initial contribution. |
|
11 |
* |
|
12 |
* Contributors: |
|
13 |
* |
|
14 |
* Description: Implementation wrapper for CEikEdwin |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
#ifndef _XNTEXTEDITOR_H |
|
19 |
#define _XNTEXTEDITOR_H |
|
20 |
||
21 |
// INCLUDES |
|
22 |
#include "xncomponent.h" |
|
23 |
#include <e32base.h> |
|
24 |
#include "xnnode.h" |
|
25 |
#include "mxncomponentinterface.h" |
|
26 |
||
27 |
||
28 |
// CLASS DECLARATION |
|
29 |
||
30 |
namespace XnTextEditorInterface |
|
31 |
{ |
|
32 |
_LIT8( KType, "texteditor" ); |
|
33 |
||
34 |
class MXnTextEditorInterface : public XnComponentInterface::MXnComponentInterface |
|
35 |
{ |
|
36 |
public: |
|
37 |
||
38 |
static inline const TDesC8& Type() |
|
39 |
{ |
|
40 |
return KType; |
|
41 |
} |
|
42 |
||
43 |
public: // New functions |
|
44 |
||
45 |
/** |
|
88
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
46 |
* Sets the new text to the underlying CEikEdwin |
83 | 47 |
* @param aText The new content |
48 |
*/ |
|
49 |
virtual void SetTextL(const TDesC& aText) = 0; |
|
50 |
||
51 |
/** |
|
88
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
52 |
* Returns the text contained in the underlying CEikEdwin |
83 | 53 |
* @return HBufC* The text |
54 |
*/ |
|
55 |
virtual const HBufC* Text() = 0; |
|
56 |
}; |
|
57 |
} |
|
58 |
||
59 |
/** |
|
60 |
* @ingroup group_xntexteditorfactory |
|
61 |
* @lib xntexteditorfactory.lib |
|
62 |
* @since S60 |
|
63 |
*/ |
|
64 |
class CXnTextEditor : public CXnComponent, public XnTextEditorInterface::MXnTextEditorInterface |
|
65 |
{ |
|
66 |
public: |
|
67 |
||
68 |
/** |
|
69 |
* 2 phase construction. |
|
70 |
*/ |
|
71 |
static CXnTextEditor* NewL(); |
|
72 |
||
73 |
/** |
|
74 |
* Destructor. |
|
75 |
*/ |
|
76 |
virtual ~CXnTextEditor(); |
|
77 |
||
78 |
public: // New functions |
|
79 |
||
80 |
/** |
|
88
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
81 |
* Sets the new content to the underlying CEikEdwin |
83 | 82 |
* @param aText The new content |
83 |
*/ |
|
84 |
void SetTextL(const TDesC& aText); |
|
85 |
||
86 |
/** |
|
88
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
87 |
* Returns the text contained in the underlying CEikEdwin |
83 | 88 |
* @return HBufC* The text |
89 |
*/ |
|
90 |
const HBufC* Text(); |
|
91 |
||
92 |
public: // from CCoeControl |
|
93 |
||
94 |
/** |
|
95 |
* Create a component interface according to the given type. |
|
96 |
* @param aType Type of the interface to create |
|
97 |
* @return Created interface or NULL if the provided type is not supported. |
|
98 |
*/ |
|
99 |
virtual XnComponentInterface::MXnComponentInterface* MakeInterfaceL( const TDesC8& aType ); |
|
100 |
||
101 |
private: |
|
102 |
||
103 |
CXnTextEditor(); |
|
104 |
void ConstructL(); |
|
105 |
}; |
|
106 |
||
107 |
#endif // _XNTEXTEDITOR_H |
|
108 |
||
109 |
// End of File |