diff -r f5050f1da672 -r 04becd199f91 javaextensions/satsa/apdu/src.s60/cstsslotmanager.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/javaextensions/satsa/apdu/src.s60/cstsslotmanager.h Tue Apr 27 16:30:29 2010 +0300 @@ -0,0 +1,103 @@ +/* +* 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 CSTSSLOTMANAGER_H +#define CSTSSLOTMANAGER_H + +// INCLUDES +#include +#include + +namespace java +{ +namespace satsa +{ + +// FORWARD DECLARATIONS +class CSTSCardOperationsFacade; +class CSTSSlotInfo; + +// CLASS DECLARATION + +/** + * Handels the slot(=reader) related operations of connection. + * Used for gettings slots from the card and checking is some + * slot existing one. + * + * @since 3.0 + */ +NONSHARABLE_CLASS(CSTSSlotManager): public CBase +{ +public: // Constructors and destructor + + /** + * Two-phased constructor. + */ + static CSTSSlotManager* NewL(CSTSCardOperationsFacade* aCOFacade); + + /** + * Destructor. + */ + virtual ~CSTSSlotManager(); + +public: // New functions + + /** + * Gets all slots of the phone + * @since 3.0 + * @param aSlotString Slot string on return value + */ + std::wstring GetSlotsL(); + + /** + * Checks is the gived slot existing one + * @since 3.0 + * @param aSlot Slot number whic will be checked + * @return ETrue if slot is existing one, else returns EFalse. + */ + TBool DoesExistL(TInt aSlot); + +private: + + /** + * C++ default constructor. + */ + CSTSSlotManager(CSTSCardOperationsFacade* aCOFacade); + + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(); + +private: // Data + + // not owned + CSTSCardOperationsFacade* iCOFacade; + // array of slot information, owned + CArrayPtr* iSlotArray; + // slot string, owned + HBufC* iSlotString; + // is slot information got or not + TBool iGetPerformed; + +}; + +} // namespace satsa +} // namespace java +#endif // CSTSSLOTMANAGER_H +// End of File