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 : CSatNotifyTimerMgmt.h
|
|
16 |
* Part of : Common SIM ATK TSY / commonsimatktsy
|
|
17 |
* Specific notifications class
|
|
18 |
* Version : 1.0
|
|
19 |
*
|
|
20 |
*/
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
#ifndef CSATNOTIFYTIMERMGMT_H
|
|
25 |
#define CSATNOTIFYTIMERMGMT_H
|
|
26 |
|
|
27 |
|
|
28 |
// INCLUDES
|
|
29 |
#include "MSatNotificationsBase.h"
|
|
30 |
|
|
31 |
// FORWARD DECLARATIONS
|
|
32 |
class CSatDataPackage;
|
|
33 |
class CSatNotificationsTsy;
|
|
34 |
|
|
35 |
/**
|
|
36 |
* DESCRIPTION
|
|
37 |
* SAT Notify Timer management notification class.
|
|
38 |
*
|
|
39 |
* @lib Commonsimatktsy
|
|
40 |
* @since 3.1
|
|
41 |
*/
|
|
42 |
NONSHARABLE_CLASS ( CSatNotifyTimerMgmt ) : public CBase,
|
|
43 |
public MSatNotificationsBase
|
|
44 |
{
|
|
45 |
public: // Constructors and destructor
|
|
46 |
|
|
47 |
/**
|
|
48 |
* Two-phased constructor.
|
|
49 |
* @param aNotificationsTsy: Pointer to NotificationsTsy
|
|
50 |
* return CSatNotifyTimerMgmt*: created object
|
|
51 |
*/
|
|
52 |
static CSatNotifyTimerMgmt* NewL(
|
|
53 |
CSatNotificationsTsy* aNotificationsTsy );
|
|
54 |
|
|
55 |
/**
|
|
56 |
* C++ Destructor.
|
|
57 |
*/
|
|
58 |
~CSatNotifyTimerMgmt();
|
|
59 |
|
|
60 |
private:
|
|
61 |
/**
|
|
62 |
* By default C++ constructor is private.
|
|
63 |
* @param aNotificationsTsy: Pointer to NotificationsTsy
|
|
64 |
* @return None
|
|
65 |
*/
|
|
66 |
CSatNotifyTimerMgmt( CSatNotificationsTsy* aNotificationsTsy );
|
|
67 |
|
|
68 |
/**
|
|
69 |
* Class attributes are created in ConstructL.
|
|
70 |
* @param None
|
|
71 |
* @return None
|
|
72 |
*/
|
|
73 |
void ConstructL();
|
|
74 |
|
|
75 |
public: // Functions from base class
|
|
76 |
|
|
77 |
/**
|
|
78 |
* Completes Timer management message to client
|
|
79 |
* @param aDataPackage: Packaged return data
|
|
80 |
* @param aErrorCode: Possible error code
|
|
81 |
* @return KErrNone/ KErrCorrupt
|
|
82 |
*/
|
|
83 |
TInt CompleteNotifyL( CSatDataPackage* aDataPackage, TInt aErrorCode );
|
|
84 |
|
|
85 |
public: // New methods
|
|
86 |
|
|
87 |
/**
|
|
88 |
* Create notification specific terminal response data
|
|
89 |
* @param aPCmdNumber: Proactive command number
|
|
90 |
* @param aGeneralResult: Result of the proactive command
|
|
91 |
* @return Success/Failure value
|
|
92 |
*/
|
|
93 |
TInt CreateTerminalRespL( TUint8 aPCmdNumber, TUint8 aGeneralResult );
|
|
94 |
|
|
95 |
private: // New methods
|
|
96 |
|
|
97 |
/**
|
|
98 |
* Converts time to seconds
|
|
99 |
* @param TPtrC8 time: time in semi-octet
|
|
100 |
* @return TUint32: time in seconds
|
|
101 |
*/
|
|
102 |
TUint32 ConvertToSeconds( TPtrC8 time );
|
|
103 |
|
|
104 |
private: // Data
|
|
105 |
|
|
106 |
// Command qualifier
|
|
107 |
TUint8 iCmdQualifier;
|
|
108 |
// Timer Value
|
|
109 |
TUint8 iTimerValue[3];
|
|
110 |
// Timer Identifier
|
|
111 |
TUint8 iTimerId;
|
|
112 |
// Pointer to the notifications tsy class
|
|
113 |
CSatNotificationsTsy* iNotificationsTsy;
|
|
114 |
};
|
|
115 |
|
|
116 |
|
|
117 |
#endif // CSatNotifyTimerMgmt_H
|