javacommons/security/javaunicertstoreplugin/src.s60/javacertstoretoken.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 27 Apr 2010 16:30:29 +0300
branchRCL_3
changeset 14 04becd199f91
permissions -rw-r--r--
Revision: v2.1.22 Kit: 201017

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

#include <e32base.h>
#include <ct.h>

namespace java
{
namespace security
{

//class CJavaCertStoreImpl;
class CJavaCertStoreTokenType;

class CJavaCertStoreToken : public CBase, public MCTToken
{
public:

    static CJavaCertStoreToken* New(TInt iId, CJavaCertStoreTokenType& aType);

    virtual ~CJavaCertStoreToken();

    //MCTToken
    virtual MCTTokenType& TokenType();
    virtual const TDesC& Label();
    virtual TCTTokenHandle Handle();

protected:

    virtual TInt& ReferenceCount();
    virtual void DoGetInterface(TUid aRequiredInterface,  MCTTokenInterface*& aReturnedInterface,
                                TRequestStatus& aStatus);
    virtual TBool DoCancelGetInterface();
    virtual const TDesC& Information(TTokenInformation);

private:
    //Datamembers.
    CJavaCertStoreTokenType&    iType;
    TInt                        iId;
    TInt                        iRefCount;
    //CJavaCertStoreImpl*         iStore;

    //Internal operations.
    CJavaCertStoreToken(TInt aId, CJavaCertStoreTokenType& aType);

};

} // end of namespace java
} // end of namespace security

#endif // JAVACERTSTORETOKEN_H