diff -r 000000000000 -r f72a12da539e idlehomescreen/xmluicontroller/inc/aipolicyelement.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/idlehomescreen/xmluicontroller/inc/aipolicyelement.h Thu Dec 17 08:40:49 2009 +0200 @@ -0,0 +1,74 @@ +/* +* Copyright (c) 2005-2007 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: Policy element +* +*/ + + +#ifndef T_AIPOLICYELEMENT_H +#define T_AIPOLICYELEMENT_H + + +#include + +class CXnNodeAppIf; + +namespace AiXmlUiController +{ + + +/** + * @ingroup group_xmluicontroller + * + * Active Idle publishing policy element + * + * @lib AiXmlUiMain + */ +class TAiPolicyElement + { + +public: + + TAiPolicyElement(); + + TAiPolicyElement( CXnNodeAppIf& aTarget, const TDesC8& aPolicy ); + + CXnNodeAppIf& Target() const; + + TPtrC8 Name() const; + + TPtrC8 Value() const; + + TPtrC8 Policy() const; + +private: // data + + /** + * Target element for policy. Not own. + */ + CXnNodeAppIf* iTarget; + + /** + * Policy string + */ + TPtrC8 iPolicy; + + TInt iSeparator; + }; + +typedef RArray< TAiPolicyElement > RAiPolicyElementArray; + +} // namespace AiXmlUiController + +#endif // T_AIPOLICYELEMENT_H