|
1 // Copyright (c) 2006-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 // IPProto Connection Provider class definition. |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 #ifndef SYMBIAN_LINKCPREXTENSIONAPI_H |
|
24 #define SYMBIAN_LINKCPREXTENSIONAPI_H |
|
25 |
|
26 #include <comms-infras/ss_log.h> |
|
27 #include <comms-infras/corecpr.h> |
|
28 #include <comms-infras/ss_legacyinterfaces.h> |
|
29 #include "IPProtoCPR.h" |
|
30 |
|
31 /** |
|
32 @internalTechnology |
|
33 @prototype |
|
34 */ |
|
35 class CLinkCprExtensionApi : public Meta::SMetaData, |
|
36 public ESock::MLinkCprApiExt |
|
37 { |
|
38 public: |
|
39 enum |
|
40 { |
|
41 EUid = 0x102822F6, |
|
42 ETypeId = 1, |
|
43 }; |
|
44 |
|
45 public: |
|
46 static CLinkCprExtensionApi* NewLC(CIPProtoConnectionProvider& aCpr); |
|
47 void SetLastProgress(const Elements::TStateChange& aStateChange); |
|
48 |
|
49 private: |
|
50 |
|
51 //ESock::MLinkCprExtensionApi |
|
52 virtual void ProgressL(TProgressBuf& aBuffer) const; |
|
53 virtual void LastProgressError(TProgressBuf& aBuffer); |
|
54 virtual TInt EnumerateSubConnectionsL(TUint& aCount); |
|
55 |
|
56 virtual TInt AllSubConnectionNotificationEnable(); |
|
57 |
|
58 protected: |
|
59 CLinkCprExtensionApi(CIPProtoConnectionProvider& aCpr); |
|
60 |
|
61 private: |
|
62 Elements::TStateChange iLastProgress; |
|
63 Elements::TStateChange iLastProgressError; |
|
64 CIPProtoConnectionProvider& iCpr; |
|
65 |
|
66 public: |
|
67 DATA_VTABLE //public for ALinkCprExtensionApi::TypeId(); |
|
68 }; |
|
69 |
|
70 #endif |
|
71 //SYMBIAN_LINKCPREXTENSIONAPI_H |