33
|
1 |
/*
|
|
2 |
* Copyright (c) 2002-2004 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: Monitors sat refresh for cbsserver
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
#ifndef CCBSSATREFRESH_H
|
|
21 |
#define CCBSSATREFRESH_H
|
|
22 |
|
|
23 |
// INCLUDES
|
|
24 |
#include <etelmm.h>
|
|
25 |
#include <msatrefreshobserver.h>
|
|
26 |
|
|
27 |
|
|
28 |
// FORWARD DECLARATIONS
|
|
29 |
//class CNWGsmMessageHandler;
|
|
30 |
class RSatSession;
|
|
31 |
class RSatRefresh;
|
|
32 |
class RSystemAgent;
|
|
33 |
class CCbsServer;
|
|
34 |
|
|
35 |
// CLASS DECLARATION
|
|
36 |
|
|
37 |
/**
|
|
38 |
* Monitors sat refresh for cbsserver
|
|
39 |
*
|
|
40 |
*/
|
|
41 |
class CCbsSatRefresh : public CBase, public MSatRefreshObserver
|
|
42 |
{
|
|
43 |
public: // Constructors and destructor
|
|
44 |
|
|
45 |
/**
|
|
46 |
* Two-phased constructor.
|
|
47 |
*/
|
|
48 |
static CCbsSatRefresh* NewL( CCbsServer& aCbsServer );
|
|
49 |
|
|
50 |
/**
|
|
51 |
* Destructor.
|
|
52 |
*/
|
|
53 |
virtual ~CCbsSatRefresh();
|
|
54 |
|
|
55 |
|
|
56 |
private:
|
|
57 |
|
|
58 |
/**
|
|
59 |
* Executes the NotifyNetworkConnectionFailure function.
|
|
60 |
*
|
|
61 |
*/
|
|
62 |
void IssueRequest();
|
|
63 |
|
|
64 |
/**
|
|
65 |
* C++ default constructor.
|
|
66 |
*/
|
|
67 |
CCbsSatRefresh( CCbsServer& aCbsServer );
|
|
68 |
|
|
69 |
|
|
70 |
/**
|
|
71 |
* Refresh query. Client should determine whether it allow the
|
|
72 |
* refresh to happen. In this method the client should not close or
|
|
73 |
* cancel the RSatRefresh subsession.
|
|
74 |
* @since 2.6
|
|
75 |
* @param aType Refresh type.
|
|
76 |
* @param aFiles Elementary files which are to be changed.
|
|
77 |
* May be zero length.
|
|
78 |
* @return ETrue to allow refresh, EFalse to decline refresh.
|
|
79 |
*/
|
|
80 |
TBool AllowRefresh( TSatRefreshType aType, const TSatRefreshFiles& aFiles );
|
|
81 |
|
|
82 |
/**
|
|
83 |
* Notification of refresh. In this method the client should not close
|
|
84 |
* or cancel the RSatRefresh subsession.
|
|
85 |
* @since 2.6
|
|
86 |
* @param aType Type of refresh which has happened.
|
|
87 |
* @param aFiles List of elementary files which has been changed.
|
|
88 |
* May be zero length.
|
|
89 |
*/
|
|
90 |
void Refresh( TSatRefreshType aType, const TSatRefreshFiles& aFiles );
|
|
91 |
|
|
92 |
|
|
93 |
/**
|
|
94 |
* By default Symbian 2nd phase constructor is private.
|
|
95 |
*/
|
|
96 |
void ConstructL();
|
|
97 |
|
|
98 |
private: // Data
|
|
99 |
// Reference to cbsserver
|
|
100 |
CCbsServer& iCbsServer;
|
|
101 |
// Sat session connection.
|
|
102 |
RSatSession* iSatSession;
|
|
103 |
// Sat refresh connection
|
|
104 |
RSatRefresh* iSatRefresh;
|
|
105 |
// System agent connection
|
|
106 |
RSystemAgent* iSystemAgent;
|
|
107 |
// Is refresh allowed to do.
|
|
108 |
TBool iAllowRefresh;
|
|
109 |
};
|
|
110 |
|
|
111 |
#endif // CCbsSatRefresh_H
|
|
112 |
|
|
113 |
|
|
114 |
|
|
115 |
// End of File
|