|
1 /* |
|
2 * Copyright (c) 2002-2004 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 #ifndef LAYOUTPACK_H |
|
20 #define LAYOUTPACK_H |
|
21 |
|
22 #include <string> |
|
23 #include <vector> |
|
24 #include <iosfwd> |
|
25 using namespace std; |
|
26 |
|
27 #include <cdlcompilertoolkit/cdltkinterface.h> |
|
28 #include <cdlcompilertoolkit/cdltkinstance.h> |
|
29 #include <cdlcompilertoolkit/cdltkprocess.h> |
|
30 using namespace CdlCompilerToolkit; |
|
31 |
|
32 /** |
|
33 * LayoutPackage |
|
34 * Write a layout package according to the LayoutPack.cdl interface |
|
35 */ |
|
36 class LayoutPackage |
|
37 { |
|
38 public: |
|
39 static int Process(vector<string>& args); |
|
40 static void ShowHelp(ostream& stream); |
|
41 |
|
42 private: |
|
43 static void Process( |
|
44 const string& aName, |
|
45 const string& aWidth, |
|
46 const string& aHeight, |
|
47 const string& aId, |
|
48 const string& aStyleName, |
|
49 const string& aDeliveryTypeName, |
|
50 const string& aPriority, |
|
51 const string& aAppUid, |
|
52 vector<string>::const_iterator aBegin, |
|
53 vector<string>::const_iterator aEnd, |
|
54 const string& aZoomName); |
|
55 static void Implement( |
|
56 CCdlTkPackage& aPkg, |
|
57 const string& aApi, |
|
58 const string& aTarget, |
|
59 const string& aReplace, |
|
60 const string& aComment = ""); |
|
61 static void ProcessOptionalStringArg(vector<string>& args, const string& aOption, string& aArg); |
|
62 static string Hash(const string& aString); |
|
63 }; |
|
64 |
|
65 |
|
66 #endif |