javaextensions/satsa/apdu/src.s60/mstsresphandler.h
author William Roberts <williamr@symbian.org>
Fri, 11 Jun 2010 16:23:52 +0100
branchGCC_SURGE
changeset 32 8ba170b5d5e1
parent 21 2a9601315dfc
permissions -rw-r--r--
Branch for GCC_SURGE fixes

/*
* Copyright (c) 2008 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 MSTSRESPHANDLER_H
#define MSTSRESPHANDLER_H

#include <jni.h>

namespace java
{
namespace satsa
{

// CLASS DECLARATION

//Base class for response handler

NONSHARABLE_CLASS(MSTSRespHandler)
{

public:

    // Setter for operation id
    virtual void SetOperationId(TInt aId) = 0;

    /**
     * Informs java side, that operation is completed.
     * @param aResponse Response bytes to be delivered to java side.
     *       Ownership transferred.
     * @param aError Error code to be delivered to java side
     */
    virtual void OperationComplete(JNIEnv* aJni, jobject aPeer,
                                   HBufC8* aResponse, TInt aError) = 0;

    virtual ~MSTSRespHandler()
    {
    }
    ;

}
;

} // namespace satsa
} // namespace java
#endif // MSTSRESPHANDLER_H
// End of File