|
1 // Copyright (c) 2007-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". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @test |
|
19 @internalComponent - Internal Symbian test code |
|
20 */ |
|
21 |
|
22 #include "wsbufferdrawer.h" |
|
23 #include <s32mem.h> |
|
24 |
|
25 CWsBufferGraphic::CWsBufferGraphic() |
|
26 { |
|
27 } |
|
28 |
|
29 EXPORT_C CWsBufferGraphic::~CWsBufferGraphic() |
|
30 { |
|
31 } |
|
32 |
|
33 EXPORT_C CWsBufferGraphic* CWsBufferGraphic::NewL() |
|
34 { |
|
35 CWsBufferGraphic* self = new(ELeave) CWsBufferGraphic; |
|
36 CleanupStack::PushL(self); |
|
37 self->BaseConstructL(KBufferDrawerImplId,KNullDesC8()); |
|
38 CleanupStack::Pop(self); |
|
39 return self; |
|
40 } |
|
41 |
|
42 EXPORT_C CWsBufferGraphic* CWsBufferGraphic::NewL(TUid aUid) |
|
43 { |
|
44 CWsBufferGraphic* self = new(ELeave) CWsBufferGraphic; |
|
45 CleanupStack::PushL(self); |
|
46 self->BaseConstructL(aUid,KBufferDrawerImplId,KNullDesC8()); |
|
47 CleanupStack::Pop(self); |
|
48 return self; |
|
49 } |
|
50 |
|
51 EXPORT_C CWsBufferGraphic* CWsBufferGraphic::NewL(const TWsGraphicId& aReplace) |
|
52 { |
|
53 CWsBufferGraphic* self = new(ELeave) CWsBufferGraphic; |
|
54 CleanupStack::PushL(self); |
|
55 self->BaseConstructL(aReplace,KBufferDrawerImplId,KNullDesC8()); |
|
56 CleanupStack::Pop(self); |
|
57 return self; |
|
58 } |
|
59 |
|
60 EXPORT_C TInt CWsBufferGraphic::UpdateWhiteLinePos(TInt aWhiteLinePos) |
|
61 { |
|
62 // Send the message to server side |
|
63 TBuf8<1> cmd; |
|
64 cmd.Append(aWhiteLinePos); |
|
65 |
|
66 SendMessage(cmd); |
|
67 return Flush(); |
|
68 } |
|
69 |
|
70 EXPORT_C void CWsBufferGraphic::HandleMessage(const TDesC8& /*aData*/) |
|
71 { |
|
72 } |
|
73 |
|
74 EXPORT_C void CWsBufferGraphic::OnReplace() |
|
75 { |
|
76 } |
|
77 |
|
78 EXPORT_C TInt CWsBufferGraphic::ShareGlobally() |
|
79 { |
|
80 return CWsGraphic::ShareGlobally(); |
|
81 } |
|
82 |
|
83 EXPORT_C TInt CWsBufferGraphic::UnShareGlobally() |
|
84 { |
|
85 return CWsGraphic::UnShareGlobally(); |
|
86 } |
|
87 |
|
88 EXPORT_C TInt CWsBufferGraphic::Share(TSecureId aClientId) |
|
89 { |
|
90 return CWsGraphic::Share(aClientId); |
|
91 } |
|
92 |
|
93 EXPORT_C TInt CWsBufferGraphic::UnShare(TSecureId aClientId) |
|
94 { |
|
95 return CWsGraphic::UnShare(aClientId); |
|
96 } |
|
97 |