natfw/natfwunsaf_protocols/unsaf_codec/inc/natfwunsafbindingindication.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 CNATFWUNSAFBINDINGINDICATION_H
       
    22 #define CNATFWUNSAFBINDINGINDICATION_H
       
    23 
       
    24 // INCLUDES
       
    25 #include <e32base.h>
       
    26 #include "natfwinternaldefs.h"    //UNIT_TEST
       
    27 #include "natfwunsafmessage.h"
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 
       
    31 // CLASS DECLARATION
       
    32 /**
       
    33 * NATFWUNSAF Binding Indication message
       
    34 *
       
    35 *  @lib natfwunsafprotocols.lib
       
    36 */
       
    37 class CNATFWUNSAFBindingIndication : public CNATFWUNSAFMessage
       
    38     {
       
    39     public: // Constructors and destructor
       
    40 
       
    41         /**
       
    42         * Creates a CNATFWUNSAFBindingIndication instance
       
    43         * @param aTransactionID NATFWUNSAF transaction ID
       
    44         * @return A new instance of CNATFWUNSAFBindingIndication
       
    45         */
       
    46         IMPORT_C static CNATFWUNSAFBindingIndication*
       
    47                     NewL(const TNATFWUNSAFTransactionID& aTransactionID);
       
    48 
       
    49         /**
       
    50         * Creates a CNATFWUNSAFBindingIndication instance and pushes it to
       
    51         * CleanupStack
       
    52         * @param aTransactionID NATFWUNSAF transaction ID
       
    53         * @return A new instance of CNATFWUNSAFBindingIndication
       
    54         */
       
    55         IMPORT_C static CNATFWUNSAFBindingIndication*
       
    56                     NewLC(const TNATFWUNSAFTransactionID& aTransactionID);
       
    57 
       
    58         /**
       
    59         * Creates a CNATFWUNSAFBindingIndication instance. Used from lookup
       
    60         * table.
       
    61         * @param aTransactionID NATFWUNSAF transaction ID
       
    62         * @return A new instance of CNATFWUNSAFMessage,
       
    63         *         ownership is transferred.
       
    64         */
       
    65         static CNATFWUNSAFMessage*
       
    66             CreateL(const TNATFWUNSAFTransactionID& aTransactionID);
       
    67 
       
    68         /**
       
    69         * Destructor, deletes the resources of CNATFWUNSAFBindingIndication.
       
    70         */
       
    71         ~CNATFWUNSAFBindingIndication();
       
    72 
       
    73     public: // From CNATFWUNSAFMessage
       
    74 
       
    75         TType Type() const;
       
    76 
       
    77         TBool Validate() const;
       
    78 
       
    79         TBool IsAllowed(TUint16 aAttributeType) const;
       
    80 
       
    81     private: // Constructors
       
    82 
       
    83         CNATFWUNSAFBindingIndication(
       
    84             const TNATFWUNSAFTransactionID& aTransactionID);
       
    85     };
       
    86 
       
    87 #endif // CNATFWUNSAFBINDINGINDICATION_H
       
    88 
       
    89