diff -r f5050f1da672 -r 04becd199f91 javacommons/security/javaunicertstoreplugin/src.s60/javacertstoretoken.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/javacommons/security/javaunicertstoreplugin/src.s60/javacertstoretoken.h Tue Apr 27 16:30:29 2010 +0300 @@ -0,0 +1,69 @@ +/* +* 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 +#include + +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 +