|
1 /* |
|
2 * ============================================================================ |
|
3 * Name : TestFileName.h |
|
4 * Part of : TestSubSystem / TestModule *** Info from the SWAD |
|
5 * Description : TestDescription |
|
6 * |
|
7 * continues |
|
8 * |
|
9 * --- |
|
10 * still |
|
11 * Version : %version: % << Don't touch! Updated by Synergy at check-out. |
|
12 * |
|
13 * Copyright © 2000-2001 Nokia Corporation and/or its subsidiary(-ies). |
|
14 * All rights reserved. |
|
15 * This component and the accompanying materials are made available |
|
16 * under the terms of "Eclipse Public License v1.0" |
|
17 * which accompanies this distribution, and is available |
|
18 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
19 * |
|
20 * Initial Contributors: |
|
21 * Nokia Corporation - initial contribution. |
|
22 * |
|
23 * Contributors: |
|
24 * |
|
25 * ============================================================================ |
|
26 * Template version: 4.2 |
|
27 */ |
|
28 |
|
29 *** INSTRUCTIONS TO THE TEMPLATE USER: |
|
30 |
|
31 *** This template follows the S60 coding conventions |
|
32 *** (S60_Coding_Conventions.doc). Remove all unneeded declarations |
|
33 *** and definitions before checking the file in! Also remove the |
|
34 *** template's usage instructions, that is, everything that begins |
|
35 *** with "***". |
|
36 |
|
37 *** The copyright years should be < the year of the file's creation > |
|
38 *** - < the year of the file's latest update >. |
|
39 |
|
40 *** Words that begin with "?" are for you to replace with your own |
|
41 *** identifiers, filenames, or comments. ?IMPORT_C means either the |
|
42 *** IMPORT_C visibility directive, or nothing, depending on whether |
|
43 *** the function is to be exported or not. |
|
44 |
|
45 *** To support building on Linux, use only forward slashes in include |
|
46 *** directives. Also, all filenames and pathnames must be completely |
|
47 *** in lowercase. |
|
48 |
|
49 *** Indent four spaces per step, using spaces, not tabs, to display |
|
50 *** the code consistently across different editors. |
|
51 |
|
52 *** A T class differs from a C class only in the respect that it owns no |
|
53 *** heap-allocated (dynamic) memory, and thus needs no explicit destructor. |
|
54 *** A T class may be instantiated either on the heap or on the stack. |
|
55 *** You must ensure that a T class is fully constructed before use. |
|
56 *** A T class will derive from zero or one other T classes. |
|
57 |
|
58 |
|
59 #ifndef T_TESTCLASSNAME_H |
|
60 #define T_TESTCLASSNAME_H |
|
61 |
|
62 |
|
63 *** system include files go here: |
|
64 |
|
65 #include <?include_file> |
|
66 |
|
67 *** user include files go here: |
|
68 |
|
69 #include "?include_file" |
|
70 |
|
71 *** forward declarations go here: |
|
72 |
|
73 class ?forward_classname; |
|
74 |
|
75 *** external data types go here: |
|
76 |
|
77 /** ?description */ |
|
78 extern ?data_type; |
|
79 |
|
80 *** constants go here: |
|
81 |
|
82 const ?type ?constant_var = ?constant; |
|
83 |
|
84 |
|
85 *** the class declaration goes here: |
|
86 |
|
87 /** |
|
88 * ?one_line_short_description |
|
89 * |
|
90 * ?more_complete_description |
|
91 * |
|
92 * @code |
|
93 * ?good_class_usage_example(s) |
|
94 * @endcode |
|
95 * |
|
96 * @lib ?library |
|
97 * @since S60 ?S60_version *** for example, S60 v3.0 |
|
98 */ |
|
99 class TestClassName : public ?base_class_list |
|
100 { |
|
101 |
|
102 *** friend classes go here: |
|
103 |
|
104 friend class ?class1; |
|
105 friend class ?class2; |
|
106 |
|
107 public: |
|
108 |
|
109 *** data types go here: |
|
110 |
|
111 /** ?description */ |
|
112 enum ?declaration |
|
113 |
|
114 /** ?description */ |
|
115 typedef ?declaration |
|
116 |
|
117 *** C++ constructors go here, starting with the default constructor. |
|
118 *** No destructor is needed. |
|
119 |
|
120 TestClassName(); |
|
121 |
|
122 /** |
|
123 * Constructor. |
|
124 * |
|
125 * @since S60 ?S60_version |
|
126 * @param ?arg1 ?description |
|
127 * @param ?arg2 ?description |
|
128 * @return ?description |
|
129 */ |
|
130 TestClassName( ?type1 ?arg1, ?type2 ?arg2 ); |
|
131 |
|
132 *** member functions go here: |
|
133 |
|
134 /** |
|
135 * ?description |
|
136 * |
|
137 * @since S60 ?S60_version |
|
138 * @param ?arg1 ?description |
|
139 * @param ?arg2 ?description |
|
140 * @return ?description |
|
141 */ |
|
142 ?IMPORT_C ?type ?member_function( ?type1 ?arg1, ?type2 ?arg2 ); |
|
143 |
|
144 // from base class ?base_class1 |
|
145 |
|
146 *** declarations of functions derived from base_class1 are grouped |
|
147 *** together here: |
|
148 |
|
149 /** |
|
150 * From ?base_class1. |
|
151 * ?description |
|
152 * |
|
153 * @since S60 ?S60_version |
|
154 * @param ?arg1 ?description |
|
155 */ |
|
156 ?IMPORT_C ?type ?member_function( ?type ?arg1 ); |
|
157 |
|
158 // from base class ?base_class2 |
|
159 |
|
160 *** function declarations as above |
|
161 |
|
162 protected: |
|
163 |
|
164 *** function declarations as above |
|
165 |
|
166 // from base class ?base_class2 |
|
167 |
|
168 *** function declarations as above |
|
169 |
|
170 // from base class ?base_class3 |
|
171 |
|
172 *** function declarations as above |
|
173 |
|
174 |
|
175 private: |
|
176 |
|
177 *** private, non-derived functions go here; function declarations as above |
|
178 |
|
179 |
|
180 *** avoid the use of public or protected data; data should nearly |
|
181 *** always be accessed through getter and setter functions |
|
182 |
|
183 private: // data |
|
184 |
|
185 /** |
|
186 * ?description_of_member |
|
187 */ |
|
188 ?type ?member_name; |
|
189 |
|
190 }; |
|
191 |
|
192 |
|
193 *** put the inline functions, if any, in a file included here: |
|
194 |
|
195 #include "?include_file.inl" |
|
196 |
|
197 |
|
198 #endif // T_TESTCLASSNAME_H |