telephonyserverplugins/simatktsy/inc/CSatTsyReqHandleStore.h
author srilekhas <srilekhas@symbian.org>
Fri, 17 Sep 2010 17:35:51 +0100
branchRCL_3
changeset 71 b10722dbe19e
parent 0 3553901f7fa8
child 24 6638e7f4bd8f
permissions -rw-r--r--
Merge RCL_3 fix to Bug 1398 with the latest delivery.

/*
* Copyright (c) 2005-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:
* Name        : CSatTsyReqHandleStore.h
* Part of     : Common SIM ATK TSY / commonsimatktsy
* The header file of the CSatTsyReqHandleStore class.
* Version     : 1.0
*
*/




#ifndef CSATTSYREQHANDLESTORE_H
#define CSATTSYREQHANDLESTORE_H

// INCLUDES
#include <et_tsy.h>

// FORWARD DECLARATIONS
class CSatTsy;

// DESCRIPTION
/**
* Implementation of the CSatTsyReqHandleStore class.
* @lib Commonsimatktsy
* @since 3.1
*/
NONSHARABLE_CLASS ( CSatTsyReqHandleStore ) : public CBase
    {

    public: // Constructors and destructor

        /**
        * Two-phased constructor.
        * @param aNumberOfRequests: number of requests
        * @param aFirstElement: Pointer to the first element
        * @return created object 
        */
        static CSatTsyReqHandleStore* NewL(TInt aNumberOfRequests,
            TTsyReqHandle* aFirstElement);

        /**
        * Destructor.
        */
        ~CSatTsyReqHandleStore();

    private:  

        /**
        * Constructor is accessible to inheriting classes.
        */
        CSatTsyReqHandleStore();

        /**
        * By default EPOC constructor is private.
        * @return none
        */
        void ConstructL();

    public: // New functions

        /**
        * Get TSY request handle by index.
        * @param aIndex: index where to get the req handle.
        * @return tsy req handle.
        */
        TTsyReqHandle TsyReqHandle( const TInt aIndex );

        /**
        * Sets TSY request handle for given index.
        * @param aIndex: index where to store the req handle.
        * @param req handle to be stored.
        * @return None
        */
        void SetTsyReqHandle( const TInt aIndex, 
                              const TTsyReqHandle aTsyReqHandle );
       
        /**
        * Reset TSY request handle by index.
        * @param aIndex: index which req handle to reset.
        * @return tsy req handle
        */
        TTsyReqHandle ResetTsyReqHandle( const TInt aIndex );

    private: // Data

        // Number of requests
        TInt iNumOfRequests;

        // A pointer for request handles
        TTsyReqHandle* iReqHandles;

    };

#endif // CSATTSYREQHANDLESTORE_H 

//  End of File