diff -r 000000000000 -r 1bce908db942 natfw/natfwunsaf_protocols/unsaf_codec/inc/natfwunsafsharedsecretresponse.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/natfw/natfwunsaf_protocols/unsaf_codec/inc/natfwunsafsharedsecretresponse.h Tue Feb 02 01:04:58 2010 +0200 @@ -0,0 +1,88 @@ +/* +* Copyright (c) 2006-2007 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + + + +#ifndef CNATFWUNSAFSHAREDSECRETRESPONSE_H +#define CNATFWUNSAFSHAREDSECRETRESPONSE_H + +// INCLUDES +#include +#include "natfwunsafmessage.h" + +// FORWARD DECLARATIONS + +// CLASS DECLARATION +/** +* NATFWUNSAF Shared Secret Response message +* +* @lib natfwunsafprotocols.lib +*/ +class CNATFWUNSAFSharedSecretResponse : public CNATFWUNSAFMessage + { + public: // Constructors and destructor + + /** + * Creates a CNATFWUNSAFSharedSecretResponse instance + * @param aTransactionID NATFWUNSAF transaction ID + * @return A new instance of CNATFWUNSAFSharedSecretResponse + */ + static CNATFWUNSAFSharedSecretResponse* + NewL(const TNATFWUNSAFTransactionID& aTransactionID); + + /** + * Creates a CNATFWUNSAFSharedSecretResponse instance and pushes it to + * CleanupStack + * @param aTransactionID NATFWUNSAF transaction ID + * @return A new instance of CNATFWUNSAFSharedSecretResponse + */ + static CNATFWUNSAFSharedSecretResponse* + NewLC(const TNATFWUNSAFTransactionID& aTransactionID); + + /** + * Creates a CNATFWUNSAFSharedSecretResponse instance. + * Used from lookup table. + * @param aTransactionID NATFWUNSAF transaction ID + * @return A new instance of CNATFWUNSAFMessage, + * ownership is transferred. + */ + static CNATFWUNSAFMessage* + CreateL(const TNATFWUNSAFTransactionID& aTransactionID); + + /** + * Destructor, deletes the resources of CNATFWUNSAFSharedSecretResponse. + */ + ~CNATFWUNSAFSharedSecretResponse(); + + public: // From CNATFWUNSAFMessage + + TType Type() const; + + TBool Validate() const; + + TBool IsAllowed(TUint16 aAttributeType) const; + + private: // Constructors + + CNATFWUNSAFSharedSecretResponse( + const TNATFWUNSAFTransactionID& aTransactionID); + }; + +#endif // CNATFWUNSAFSHAREDSECRETRESPONSE_H + +