idlehomescreen/xmluicontroller/inc/aipolicyelement.h
branchRCL_3
changeset 83 5456b4e8b3a8
parent 0 f72a12da539e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/idlehomescreen/xmluicontroller/inc/aipolicyelement.h	Wed Sep 01 12:32:46 2010 +0100
@@ -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 <e32std.h>
+
+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