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