27 // FORWARD DECLARATIONS |
27 // FORWARD DECLARATIONS |
28 |
28 |
29 // CLASS DECLARATIONS |
29 // CLASS DECLARATIONS |
30 |
30 |
31 class RFBFileOpServerSession : public RSessionBase |
31 class RFBFileOpServerSession : public RSessionBase |
32 { |
32 { |
33 public: |
33 public: |
34 TInt Connect(); |
34 TInt Connect(); |
35 |
35 |
36 void Copy(const TDesC& aSourceFullName, const TDesC& aTargetFullName, TUint aSwitch, TRequestStatus& aStatus); |
36 void Copy(const TDesC& aSourceFullName, const TDesC& aTargetFullName, TUint aSwitch, TRequestStatus& aStatus); |
37 TInt Rename(const TDesC& anOld, const TDesC& aNew, TUint aSwitch); |
37 TInt Rename(const TDesC& anOld, const TDesC& aNew, TUint aSwitch); |
38 TInt Attribs(const TDesC& aName, TUint aSetMask, TUint aClearMask, const TTime& aTime, TUint aSwitch); |
38 TInt Attribs(const TDesC& aName, TUint aSetMask, TUint aClearMask, const TTime& aTime, TUint aSwitch); |
39 void RmDir(const TDesC& aDirName, TUint aSwitch, TRequestStatus& aStatus); |
39 void RmDir(const TDesC& aDirName, TUint aSwitch, TRequestStatus& aStatus); |
40 void Delete(const TDesC& aName, TUint aSwitch, TRequestStatus& aStatus); |
40 void Delete(const TDesC& aName, TUint aSwitch, TRequestStatus& aStatus); |
41 TInt MkDirAll(const TDesC& aPath); |
41 TInt MkDirAll(const TDesC& aPath); |
43 TInt EraseMBR(TUint aDriveNumber); |
43 TInt EraseMBR(TUint aDriveNumber); |
44 TInt PartitionDrive(TUint aDriveNumber, TUint aNumberOfPartitions); |
44 TInt PartitionDrive(TUint aDriveNumber, TUint aNumberOfPartitions); |
45 TInt CancelOp(); |
45 TInt CancelOp(); |
46 |
46 |
47 private: |
47 private: |
48 TVersion Version() const; |
48 TVersion Version() const; |
49 TPckgBuf<TFileOpArgs> iPckgBuf; |
49 TPckgBuf<TFileOpArgs> iPckgBuf; |
50 }; |
50 }; |
51 |
51 |
52 |
52 |
53 class CFBFileOpClient : public CBase |
53 class CFBFileOpClient : public CBase |
54 { |
54 { |
55 public: |
55 public: |
56 IMPORT_C static CFBFileOpClient* NewL(); |
56 IMPORT_C static CFBFileOpClient* NewL(); |
57 IMPORT_C ~CFBFileOpClient(); |
57 IMPORT_C ~CFBFileOpClient(); |
58 IMPORT_C TInt Copy(const TDesC& aSourceFullName, const TDesC& aTargetFullName, TUint aSwitch); |
58 IMPORT_C TInt Copy(const TDesC& aSourceFullName, const TDesC& aTargetFullName, TUint aSwitch); |
59 IMPORT_C TInt Rename(const TDesC& anOld, const TDesC& aNew, TUint aSwitch); |
59 IMPORT_C TInt Rename(const TDesC& anOld, const TDesC& aNew, TUint aSwitch); |
60 IMPORT_C TInt Attribs(const TDesC& aName, TUint aSetMask, TUint aClearMask, const TTime& aTime, TUint aSwitch); |
60 IMPORT_C TInt Attribs(const TDesC& aName, TUint aSetMask, TUint aClearMask, const TTime& aTime, TUint aSwitch); |
61 IMPORT_C TInt RmDir(const TDesC& aDirName, TUint aSwitch); |
61 IMPORT_C TInt RmDir(const TDesC& aDirName, TUint aSwitch); |
62 IMPORT_C TInt Delete(const TDesC& aName, TUint aSwitch); |
62 IMPORT_C TInt Delete(const TDesC& aName, TUint aSwitch); |
63 IMPORT_C TInt MkDirAll(const TDesC& aPath); |
63 IMPORT_C TInt MkDirAll(const TDesC& aPath); |