natfw/natfwunsaf_protocols/unsaf_codec/inc/natfwunsafdataindication.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2006-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:   
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef CNATFWUNSAFDATAINDICATION_H
       
    22 #define CNATFWUNSAFDATAINDICATION_H
       
    23 
       
    24 #include <e32base.h>
       
    25 #include "natfwunsafmessage.h"
       
    26 
       
    27 /**
       
    28 * NATFWUNSAF Data indication message
       
    29 *
       
    30 *  @lib natfwunsafprotocols.lib
       
    31 *  @since S60 3.2
       
    32 */
       
    33 class CNATFWUNSAFDataIndication : public CNATFWUNSAFMessage
       
    34     {
       
    35 public: // Constructors and destructor
       
    36 
       
    37     /**
       
    38     * Creates a CNATFWUNSAFDataIndication instance
       
    39     * @param aTransactionID NATFWUNSAF transaction ID
       
    40     * @return A new instance of CNATFWUNSAFDataIndication
       
    41     */
       
    42     IMPORT_C static CNATFWUNSAFDataIndication*
       
    43         NewL(const TNATFWUNSAFTransactionID& aTransactionID);
       
    44 
       
    45     /**
       
    46     * Creates a CNATFWUNSAFDataIndication instance and pushes it to
       
    47     * CleanupStack
       
    48     * @param aTransactionID NATFWUNSAF transaction ID
       
    49     * @return A new instance of CNATFWUNSAFDataIndication
       
    50     */
       
    51     IMPORT_C static CNATFWUNSAFDataIndication*
       
    52         NewLC(const TNATFWUNSAFTransactionID& aTransactionID);
       
    53 
       
    54     /**
       
    55     * Creates a CNATFWUNSAFDataIndication instance. Used from lookup
       
    56     * table.
       
    57     * @param aTransactionID NATFWUNSAF transaction ID
       
    58     * @return A new instance of CNATFWUNSAFMessage,
       
    59     *         ownership is transferred.
       
    60     */
       
    61     static CNATFWUNSAFMessage*
       
    62         CreateL(const TNATFWUNSAFTransactionID& aTransactionID);
       
    63 
       
    64     /**
       
    65     * Destructor, deletes the resources of CNATFWUNSAFDataIndication.
       
    66     */
       
    67     ~CNATFWUNSAFDataIndication();
       
    68 
       
    69 public: // From CNATFWUNSAFMessage
       
    70 
       
    71     TType Type() const;
       
    72 
       
    73     TBool Validate() const;
       
    74 
       
    75     TBool IsAllowed(TUint16 aAttributeType) const;
       
    76 
       
    77 private: // Constructors
       
    78 
       
    79     CNATFWUNSAFDataIndication(
       
    80         const TNATFWUNSAFTransactionID& aTransactionID);
       
    81     };
       
    82 
       
    83 #endif // CNATFWUNSAFDATAINDICATION_H
       
    84 
       
    85