23 #include <featmgr.h> |
23 #include <featmgr.h> |
24 #include <fotaserver.rsg> |
24 #include <fotaserver.rsg> |
25 #include "FotaSrvDocument.h" |
25 #include "FotaSrvDocument.h" |
26 #include "FotaSrvUI.h" |
26 #include "FotaSrvUI.h" |
27 #include "FotaSrvDebug.h" |
27 #include "FotaSrvDebug.h" |
28 |
28 #include <e32property.h> |
|
29 #include "FotaServer.h" |
29 // ================= MEMBER FUNCTIONS ======================= |
30 // ================= MEMBER FUNCTIONS ======================= |
30 |
31 |
31 // --------------------------------------------------------------------------- |
32 // --------------------------------------------------------------------------- |
32 // Desctructor |
33 // Desctructor |
33 // --------------------------------------------------------------------------- |
34 // --------------------------------------------------------------------------- |
34 // |
35 // |
35 CFotaSrvDocument::~CFotaSrvDocument() |
36 CFotaSrvDocument::~CFotaSrvDocument() |
36 { |
37 { |
|
38 TInt err = RProperty::Delete(TUid::Uid(KFotaServerUid), KFotaDownloadActive); |
37 } |
39 } |
38 |
40 |
39 |
41 |
40 // --------------------------------------------------------------------------- |
42 // --------------------------------------------------------------------------- |
41 // CFotaSrvDocument::ConstructL |
43 // CFotaSrvDocument::ConstructL |
42 // 2nd phase constructor |
44 // 2nd phase constructor |
43 // --------------------------------------------------------------------------- |
45 // --------------------------------------------------------------------------- |
44 // |
46 // |
45 void CFotaSrvDocument::ConstructL() |
47 void CFotaSrvDocument::ConstructL() |
46 { |
48 { |
|
49 TInt err1(KErrNone); |
|
50 _LIT_SECURITY_POLICY_C1( KReadPolicy, ECapabilityReadDeviceData ); |
|
51 _LIT_SECURITY_POLICY_C1( KWritePolicy, ECapabilityDiskAdmin ); |
|
52 TInt err = RProperty::Define( TUid::Uid(KFotaServerUid), |
|
53 KFotaDownloadActive, |
|
54 RProperty::EInt,KReadPolicy,KWritePolicy); |
|
55 if(err==0) |
|
56 { |
|
57 err1 = RProperty::Set( TUid::Uid(KFotaServerUid),KFotaDownloadActive,KErrNotFound ); |
|
58 } |
|
59 FLOG(_L(" [FotaServer] CFotaSrvDocument::ConstructL : error in setting rproperty: %d %d"), err,err1); |
47 //iEikEnv = CEikonEnv::Static(); |
60 //iEikEnv = CEikonEnv::Static(); |
|
61 |
48 } |
62 } |
49 |
|
50 |
63 |
51 // --------------------------------------------------------------------------- |
64 // --------------------------------------------------------------------------- |
52 // CFotaSrvDocument::NewL |
65 // CFotaSrvDocument::NewL |
53 // Two-phased constructor. |
66 // Two-phased constructor. |
54 // --------------------------------------------------------------------------- |
67 // --------------------------------------------------------------------------- |