idlehomescreen/xmluicontroller/inc/aipolicyelement.h
changeset 0 f72a12da539e
equal deleted inserted replaced
-1:000000000000 0:f72a12da539e
       
     1 /*
       
     2 * Copyright (c) 2005-2007 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:  Policy element
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef T_AIPOLICYELEMENT_H
       
    20 #define T_AIPOLICYELEMENT_H
       
    21 
       
    22 
       
    23 #include <e32std.h>
       
    24 
       
    25 class CXnNodeAppIf;
       
    26 
       
    27 namespace AiXmlUiController
       
    28 {
       
    29     
       
    30 
       
    31 /**
       
    32  *  @ingroup group_xmluicontroller
       
    33  * 
       
    34  *  Active Idle publishing policy element
       
    35  *
       
    36  *  @lib AiXmlUiMain
       
    37  */
       
    38 class TAiPolicyElement
       
    39     {
       
    40 
       
    41 public:
       
    42 
       
    43     TAiPolicyElement();
       
    44 
       
    45     TAiPolicyElement( CXnNodeAppIf& aTarget, const TDesC8& aPolicy );
       
    46 
       
    47     CXnNodeAppIf& Target() const;
       
    48 
       
    49     TPtrC8 Name() const;
       
    50     
       
    51     TPtrC8 Value() const;
       
    52     
       
    53     TPtrC8 Policy() const;
       
    54 
       
    55 private: // data
       
    56 
       
    57     /**
       
    58      * Target element for policy. Not own.
       
    59      */
       
    60     CXnNodeAppIf* iTarget;
       
    61     
       
    62     /**
       
    63      * Policy string
       
    64      */
       
    65     TPtrC8 iPolicy;
       
    66 
       
    67     TInt iSeparator;
       
    68     };
       
    69     
       
    70 typedef RArray< TAiPolicyElement > RAiPolicyElementArray;
       
    71     
       
    72 } // namespace AiXmlUiController
       
    73 
       
    74 #endif // T_AIPOLICYELEMENT_H