24
|
1 |
/*
|
|
2 |
* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
* Name : CSatTsyReqHandleStore.h
|
|
16 |
* Part of : Common SIM ATK TSY / commonsimatktsy
|
|
17 |
* The header file of the CSatTsyReqHandleStore class.
|
|
18 |
* Version : 1.0
|
|
19 |
*
|
|
20 |
*/
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
#ifndef CSATTSYREQHANDLESTORE_H
|
|
26 |
#define CSATTSYREQHANDLESTORE_H
|
|
27 |
|
|
28 |
// INCLUDES
|
|
29 |
#include <et_tsy.h>
|
|
30 |
|
|
31 |
// FORWARD DECLARATIONS
|
|
32 |
class CSatTsy;
|
|
33 |
|
|
34 |
// DESCRIPTION
|
|
35 |
/**
|
|
36 |
* Implementation of the CSatTsyReqHandleStore class.
|
|
37 |
* @lib Commonsimatktsy
|
|
38 |
* @since 3.1
|
|
39 |
*/
|
|
40 |
NONSHARABLE_CLASS ( CSatTsyReqHandleStore ) : public CBase
|
|
41 |
{
|
|
42 |
|
|
43 |
public: // Constructors and destructor
|
|
44 |
|
|
45 |
/**
|
|
46 |
* Two-phased constructor.
|
|
47 |
* @param aNumberOfRequests: number of requests
|
|
48 |
* @param aFirstElement: Pointer to the first element
|
|
49 |
* @return created object
|
|
50 |
*/
|
|
51 |
static CSatTsyReqHandleStore* NewL(TInt aNumberOfRequests,
|
|
52 |
TTsyReqHandle* aFirstElement);
|
|
53 |
|
|
54 |
/**
|
|
55 |
* Destructor.
|
|
56 |
*/
|
|
57 |
~CSatTsyReqHandleStore();
|
|
58 |
|
|
59 |
private:
|
|
60 |
|
|
61 |
/**
|
|
62 |
* Constructor is accessible to inheriting classes.
|
|
63 |
*/
|
|
64 |
CSatTsyReqHandleStore();
|
|
65 |
|
|
66 |
/**
|
|
67 |
* By default EPOC constructor is private.
|
|
68 |
* @return none
|
|
69 |
*/
|
|
70 |
void ConstructL();
|
|
71 |
|
|
72 |
public: // New functions
|
|
73 |
|
|
74 |
/**
|
|
75 |
* Get TSY request handle by index.
|
|
76 |
* @param aIndex: index where to get the req handle.
|
|
77 |
* @return tsy req handle.
|
|
78 |
*/
|
|
79 |
TTsyReqHandle TsyReqHandle( const TInt aIndex );
|
|
80 |
|
|
81 |
/**
|
|
82 |
* Sets TSY request handle for given index.
|
|
83 |
* @param aIndex: index where to store the req handle.
|
|
84 |
* @param req handle to be stored.
|
|
85 |
* @return None
|
|
86 |
*/
|
|
87 |
void SetTsyReqHandle( const TInt aIndex,
|
|
88 |
const TTsyReqHandle aTsyReqHandle );
|
|
89 |
|
|
90 |
/**
|
|
91 |
* Reset TSY request handle by index.
|
|
92 |
* @param aIndex: index which req handle to reset.
|
|
93 |
* @return tsy req handle
|
|
94 |
*/
|
|
95 |
TTsyReqHandle ResetTsyReqHandle( const TInt aIndex );
|
|
96 |
|
|
97 |
private: // Data
|
|
98 |
|
|
99 |
// Number of requests
|
|
100 |
TInt iNumOfRequests;
|
|
101 |
|
|
102 |
// A pointer for request handles
|
|
103 |
TTsyReqHandle* iReqHandles;
|
|
104 |
|
|
105 |
};
|
|
106 |
|
|
107 |
#endif // CSATTSYREQHANDLESTORE_H
|
|
108 |
|
|
109 |
// End of File
|
|
110 |
|