51
|
1 |
/*
|
|
2 |
* Copyright (c) 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: Implementation of fotaserver component
|
|
15 |
* This is part of fotaapplication.
|
|
16 |
*
|
|
17 |
*/
|
|
18 |
|
|
19 |
#ifndef __FMS_CLIENT_H__
|
|
20 |
#define __FMS_CLIENT_H__
|
|
21 |
|
|
22 |
#include <e32std.h>
|
|
23 |
#include <e32base.h>
|
|
24 |
#include <e32cmn.h>
|
|
25 |
#include <f32file.h>
|
|
26 |
#include "fmsclientserver.h"
|
|
27 |
|
|
28 |
|
|
29 |
class RFMSClient : public RSessionBase
|
|
30 |
{
|
|
31 |
public:
|
|
32 |
/**
|
|
33 |
* Launches FMSServer
|
|
34 |
* @param None
|
|
35 |
* @return KErrNone Symbian error code
|
|
36 |
*/
|
|
37 |
IMPORT_C TInt OpenL();
|
|
38 |
|
|
39 |
/**
|
|
40 |
* Close server connection
|
|
41 |
* @param None
|
|
42 |
* @return None
|
|
43 |
*/
|
|
44 |
IMPORT_C void Close();
|
|
45 |
|
|
46 |
/**
|
|
47 |
* Sending the parameters to FMSServer
|
|
48 |
* FotaServer or test app should use this
|
|
49 |
* @param aReason
|
|
50 |
* @param aBearer
|
|
51 |
* @param aDrive
|
|
52 |
* @param aSize
|
|
53 |
* @return None
|
|
54 |
*/
|
|
55 |
IMPORT_C void NotifyForResumeL(const TFmsIpcCommands& aReason,
|
|
56 |
const TInt& aBearer, const TDriveNumber& aDrive, const TInt& aSize);
|
|
57 |
|
|
58 |
|
|
59 |
/**
|
|
60 |
* phone call active check to FMSServer
|
|
61 |
* @param aCallActive, on return holds call status
|
|
62 |
* @return TInt, error code
|
|
63 |
*/
|
|
64 |
IMPORT_C TInt IsPhoneCallActive(TInt& aCallActive);
|
|
65 |
|
|
66 |
|
|
67 |
IMPORT_C void NotifyForUpdateL(const TFmsIpcCommands& aReason, TUint aLevel = 2);
|
|
68 |
|
|
69 |
/**
|
|
70 |
* Cancels the request on FMSServer
|
|
71 |
* @param None
|
|
72 |
* @return None
|
|
73 |
*/
|
|
74 |
IMPORT_C void Cancel();
|
|
75 |
|
|
76 |
private:
|
|
77 |
/*
|
|
78 |
* FotaStartUp uses this at the time of reboot
|
|
79 |
* to trigger FMS server
|
|
80 |
* @param None
|
|
81 |
* @return None
|
|
82 |
*/
|
|
83 |
void SendInterruptParamsL();
|
|
84 |
};
|
|
85 |
|
|
86 |
#endif
|