ncdengine/provider/protocol/inc/ncd_cp_queryimpl.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2006 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:   MNcdProtocolElementEntity declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef NCDPROTOCOLELEMENTQUERYIMPL_H
       
    20 #define NCDPROTOCOLELEMENTQUERYIMPL_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 #include "ncd_cp_query.h"
       
    25 
       
    26 class CNcdString;
       
    27 class MNcdConfigurationProtocolQueryElement;
       
    28 class CNcdConfigurationProtocolQueryElementImpl;
       
    29 
       
    30 class CNcdConfigurationProtocolQueryImpl :  public CBase,
       
    31                                             public MNcdConfigurationProtocolQuery
       
    32     {
       
    33 public:
       
    34     
       
    35     static CNcdConfigurationProtocolQueryImpl* NewL();
       
    36     static CNcdConfigurationProtocolQueryImpl* NewLC();
       
    37     
       
    38     CNcdConfigurationProtocolQueryImpl();
       
    39 
       
    40     void ConstructL();
       
    41     
       
    42     virtual ~CNcdConfigurationProtocolQueryImpl();
       
    43 
       
    44     /**
       
    45      * @see MNcdPerminetProtocolQuery
       
    46      */
       
    47     virtual const TDesC& Id() const;
       
    48     
       
    49     /**
       
    50      * @see MNcdPerminetProtocolQuery
       
    51      */
       
    52     virtual MNcdQuery::TSemantics Semantics() const;
       
    53     
       
    54     /**
       
    55      * @see MNcdPerminetProtocolQuery
       
    56      */
       
    57     virtual TNcdProtocolQueryTrigger Trigger() const;
       
    58     
       
    59     /**
       
    60      * @see MNcdPerminetProtocolQuery
       
    61      */
       
    62     virtual TBool Force() const;
       
    63 
       
    64     /**
       
    65      * @see MNcdPerminetProtocolQuery
       
    66      */
       
    67     virtual const TDesC& ResponseUri() const;
       
    68 
       
    69     /**
       
    70      * @see MNcdPerminetProtocolQuery
       
    71      */
       
    72     virtual TBool Optional() const;
       
    73 
       
    74     /**
       
    75      * @see MNcdPerminetProtocolQuery
       
    76      */
       
    77     virtual const CNcdString& Title() const;
       
    78 
       
    79     /**
       
    80      * @see MNcdPerminetProtocolQuery
       
    81      */
       
    82     virtual const CNcdString& BodyText() const;
       
    83 
       
    84     /**
       
    85      * @see MNcdPerminetProtocolQuery
       
    86      */
       
    87     virtual TInt QueryElementCount() const;
       
    88     
       
    89     /**
       
    90      * @see MNcdPerminetProtocolQuery
       
    91      */
       
    92     virtual const MNcdConfigurationProtocolQueryElement& QueryElementL( 
       
    93         TInt aIndex ) const;
       
    94         
       
    95 public:
       
    96     
       
    97     HBufC* iId;
       
    98     MNcdQuery::TSemantics iSemantics;
       
    99     TNcdProtocolQueryTrigger iTrigger;
       
   100     TBool iForce;
       
   101     HBufC* iResponseUri;
       
   102     TBool iOptional;
       
   103 
       
   104 //     HBufC* iTitle;
       
   105 //     HBufC* iBodyText;
       
   106     CNcdString* iTitle;
       
   107     CNcdString* iBodyText;
       
   108 
       
   109 
       
   110     RPointerArray<CNcdConfigurationProtocolQueryElementImpl> iQueryElements;
       
   111     
       
   112 
       
   113     };
       
   114 
       
   115 
       
   116 #endif // NCDPROTOCOLELEMENTQUERYIMPL_H