|
1 /* |
|
2 * Copyright (c) 2002 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 |
|
22 #include <e32std.h> |
|
23 #include "AknIconSrvDebug.h" |
|
24 #include "AknIconSrvClient.h" |
|
25 #include "AknIconSrvTlsData.h" |
|
26 |
|
27 // CONSTANTS |
|
28 |
|
29 // ================= GLOBAL FUNCTIONS ========================================== |
|
30 |
|
31 // ----------------------------------------------------------------------------- |
|
32 // __SERVER_HEAP_MARK |
|
33 // ----------------------------------------------------------------------------- |
|
34 // |
|
35 EXPORT_C GLDEF_C void __SERVER_HEAP_MARK() |
|
36 { |
|
37 #if defined(_DEBUG) && defined(__WINS__) |
|
38 RAknIconSrvClient* client = RAknIconSrvClient::GetSession(); |
|
39 client->__SERVER_HEAP_MARK(); |
|
40 #endif |
|
41 } |
|
42 |
|
43 // ----------------------------------------------------------------------------- |
|
44 // __SERVER_HEAP_MARKEND |
|
45 // ----------------------------------------------------------------------------- |
|
46 // |
|
47 EXPORT_C GLDEF_C void __SERVER_HEAP_MARKEND() |
|
48 { |
|
49 #if defined(_DEBUG) && defined(__WINS__) |
|
50 RAknIconSrvClient* client = RAknIconSrvClient::GetSession(); |
|
51 client->__SERVER_HEAP_MARKEND(); |
|
52 #endif |
|
53 } |
|
54 |
|
55 // ----------------------------------------------------------------------------- |
|
56 // __SERVER_HEAP_FAILNEXT |
|
57 // ----------------------------------------------------------------------------- |
|
58 // |
|
59 EXPORT_C GLDEF_C void __SERVER_HEAP_FAILNEXT( TInt aCount ) |
|
60 { |
|
61 #if defined(_DEBUG) && defined(__WINS__) |
|
62 RAknIconSrvClient* client = RAknIconSrvClient::GetSession(); |
|
63 client->__SERVER_HEAP_FAILNEXT( aCount ); |
|
64 #endif |
|
65 } |
|
66 |
|
67 // ----------------------------------------------------------------------------- |
|
68 // __SERVER_HEAP_FAILNEXT_INCREASING |
|
69 // ----------------------------------------------------------------------------- |
|
70 // |
|
71 EXPORT_C GLDEF_C void __SERVER_HEAP_FAILNEXT_INCREASING( TInt aCount ) |
|
72 { |
|
73 #if defined(_DEBUG) && defined(__WINS__) |
|
74 RAknIconSrvClient* client = RAknIconSrvClient::GetSession(); |
|
75 client->__SERVER_HEAP_FAILNEXT_INCREASING( aCount ); |
|
76 #endif |
|
77 } |
|
78 |
|
79 // ----------------------------------------------------------------------------- |
|
80 // __SERVER_HEAP_RESET |
|
81 // ----------------------------------------------------------------------------- |
|
82 // |
|
83 EXPORT_C GLDEF_C void __SERVER_HEAP_RESET() |
|
84 { |
|
85 #if defined(_DEBUG) && defined(__WINS__) |
|
86 RAknIconSrvClient* client = RAknIconSrvClient::GetSession(); |
|
87 client->__SERVER_HEAP_RESET(); |
|
88 #endif |
|
89 } |
|
90 |
|
91 // ----------------------------------------------------------------------------- |
|
92 // __SERVER_RESET_DYNAMICALLY_CHANGING_ALLOCATIONS |
|
93 // ----------------------------------------------------------------------------- |
|
94 // |
|
95 EXPORT_C GLDEF_C void __SERVER_RESET_DYNAMICALLY_CHANGING_ALLOCATIONS() |
|
96 { |
|
97 #if defined(_DEBUG) |
|
98 RAknIconSrvClient* client = RAknIconSrvClient::GetSession(); |
|
99 client->__SERVER_RESET_DYNAMICALLY_CHANGING_ALLOCATIONS(); |
|
100 #endif |
|
101 } |
|
102 |
|
103 // ----------------------------------------------------------------------------- |
|
104 // __SERVER_HEAP_USED |
|
105 // ----------------------------------------------------------------------------- |
|
106 // |
|
107 EXPORT_C GLDEF_C TInt __SERVER_HEAP_USED() |
|
108 { |
|
109 TInt ret = 0; |
|
110 |
|
111 #if defined(_DEBUG) |
|
112 RAknIconSrvClient* client = RAknIconSrvClient::GetSession(); |
|
113 ret = client->__SERVER_HEAP_USED(); |
|
114 #endif |
|
115 |
|
116 return ret; |
|
117 } |
|
118 |
|
119 // ----------------------------------------------------------------------------- |
|
120 // __SERVER_SET_PREFERRED_ICON_DISPLAY_MODE |
|
121 // ----------------------------------------------------------------------------- |
|
122 // |
|
123 EXPORT_C GLREF_C void __SERVER_SET_PREFERRED_ICON_DISPLAY_MODE( |
|
124 TDisplayMode aMode ) |
|
125 { |
|
126 #if defined(_DEBUG) |
|
127 |
|
128 // New display mode won't affect already connected clients, |
|
129 // except this client. |
|
130 |
|
131 RAknIconSrvClient* client = RAknIconSrvClient::GetSession(); |
|
132 client->__SERVER_SET_PREFERRED_ICON_DISPLAY_MODE( aMode ); |
|
133 |
|
134 CAknIconSrvTlsData* data = static_cast<CAknIconSrvTlsData*>( Dll::Tls() ); |
|
135 ((TAknIconInitData&)data->InitData()).iIconMode = aMode; |
|
136 #endif |
|
137 } |
|
138 |
|
139 // End of File |