|
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef BFTP_H |
|
17 #define BFTP_H |
|
18 |
|
19 class IrTranpUtil; |
|
20 class SCEP; |
|
21 class CTranpProtocol; |
|
22 |
|
23 /* |
|
24 * Name: BFTP |
|
25 * |
|
26 * Description: bFTP - abstraction layer on top of SCEP |
|
27 * |
|
28 */ |
|
29 |
|
30 NONSHARABLE_CLASS(BFTP) : public CBase |
|
31 { |
|
32 public: |
|
33 static BFTP* NewL(CTranpProtocol* aTranpProtocol, const MTranpNotification* aNotifier); |
|
34 void ConstructL(CTranpProtocol* aTranpProtocol, const MTranpNotification* aNotifier); |
|
35 ~BFTP(); |
|
36 |
|
37 void ReqPDU(const TDesC8& a_Header, TInt offset); |
|
38 |
|
39 // These methods are called from the application |
|
40 void Put(TPtr8* a_picture, TPtr a_fileName); |
|
41 //TPtr8* Get(); |
|
42 void /*TPtr8*/ GetFileName(); |
|
43 |
|
44 // Pure pass-through to SCEP |
|
45 TInt Pump(TLatticeSize aLatticeSize); |
|
46 void SetPMID(const TDesC8& aPMID); |
|
47 void SetSMID(const TDesC8& aSMID); |
|
48 void SetPDU(TUint8); |
|
49 |
|
50 void Abort(); |
|
51 |
|
52 private: |
|
53 BFTP(); |
|
54 // Pointer to the SCEP layer |
|
55 SCEP* m_oSCEP; |
|
56 // Buffer to hold the name of the file |
|
57 TBuf8<256> m_FileName; |
|
58 TBuf8<256> iLongFilename; |
|
59 // Pointer to the TPtr which will point JPEG part of the received picture |
|
60 TPtr8 iPicture; |
|
61 // Pointer to the TPtr which will point JPEG part of the recieved picture |
|
62 TPtr8 iUPFPicture; |
|
63 TLatticeSize iLatticeSize; // Size of picture |
|
64 |
|
65 CTranpProtocol* iTranpProtocol; |
|
66 }; |
|
67 #endif //BFTP_H |