ncdengine/provider/protocol/inc/ncd_pp_paymentimpl.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:   CNcdPreminetProtocolPaymentImpl declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef NCD_PROTOCOL_ELEMENT_PAYMENT_IMPL_H
       
    20 #define NCD_PROTOCOL_ELEMENT_PAYMENT_IMPL_H
       
    21 
       
    22 #include "ncd_pp_purchase.h"
       
    23 //#include "ncdprotocoltypes.h"
       
    24 #include "ncdpaymentmethod.h"
       
    25 #include "ncdstoragedataitem.h"
       
    26 
       
    27 class CNcdString;
       
    28 
       
    29 class CNcdPreminetProtocolPaymentImpl :
       
    30     public CBase,
       
    31     public MNcdPreminetProtocolPayment,
       
    32     public MNcdStorageDataItem
       
    33     {
       
    34     
       
    35 public:
       
    36 
       
    37     static CNcdPreminetProtocolPaymentImpl* NewL();
       
    38     static CNcdPreminetProtocolPaymentImpl* NewLC();
       
    39 
       
    40     virtual ~CNcdPreminetProtocolPaymentImpl();
       
    41     
       
    42     void ConstructL();
       
    43 
       
    44 
       
    45     // From base class MNcdPreminetProtocolPurchase
       
    46     virtual MNcdPaymentMethod::TNcdPaymentMethodType Method() const;
       
    47     
       
    48     virtual const TDesC& QueryId() const;
       
    49     
       
    50     virtual const CNcdString& Name() const;
       
    51 
       
    52     virtual const MNcdPreminetProtocolSmsDetails& 
       
    53         SmsDetailsL(TInt aIndex) const;
       
    54     virtual TInt SmsDetailsCount() const;
       
    55     
       
    56     virtual CNcdPreminetProtocolPaymentImpl* CloneL() const;
       
    57 
       
    58 public: // From MNcdStorageDataItem
       
    59 
       
    60     void ExternalizeL( RWriteStream& aStream );
       
    61     void InternalizeL( RReadStream& aStream );
       
    62 
       
    63 public:
       
    64 
       
    65     MNcdPaymentMethod::TNcdPaymentMethodType iMethod;
       
    66     HBufC* iQueryId;
       
    67     CNcdString* iName;
       
    68     RPointerArray<MNcdPreminetProtocolSmsDetails> iSmsDetails;
       
    69     
       
    70     };
       
    71 
       
    72 #endif // NCD_PROTOCOL_ELEMENT_PAYMENT_IMPL_H