diff -r 000000000000 -r f58d6ec98e88 aknlayoutcompiler/inc/LayoutPack.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/aknlayoutcompiler/inc/LayoutPack.h Thu Dec 17 09:14:18 2009 +0200 @@ -0,0 +1,66 @@ +/* +* Copyright (c) 2002-2004 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + +#ifndef LAYOUTPACK_H +#define LAYOUTPACK_H + +#include +#include +#include +using namespace std; + +#include +#include +#include +using namespace CdlCompilerToolkit; + +/** +* LayoutPackage +* Write a layout package according to the LayoutPack.cdl interface +*/ +class LayoutPackage + { +public: + static int Process(vector& args); + static void ShowHelp(ostream& stream); + +private: + static void Process( + const string& aName, + const string& aWidth, + const string& aHeight, + const string& aId, + const string& aStyleName, + const string& aDeliveryTypeName, + const string& aPriority, + const string& aAppUid, + vector::const_iterator aBegin, + vector::const_iterator aEnd, + const string& aZoomName); + static void Implement( + CCdlTkPackage& aPkg, + const string& aApi, + const string& aTarget, + const string& aReplace, + const string& aComment = ""); + static void ProcessOptionalStringArg(vector& args, const string& aOption, string& aArg); + static string Hash(const string& aString); + }; + + +#endif