equal
deleted
inserted
replaced
|
1 // socketuser.h |
|
2 // |
|
3 // Copyright (c) 2008 - 2010 Accenture. All rights reserved. |
|
4 // This component and the accompanying materials are made available |
|
5 // under the terms of the "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 // Accenture - Initial contribution |
|
11 // |
|
12 |
|
13 #ifndef __SOCKETUSER_H__ |
|
14 #define __SOCKETUSER_H__ |
|
15 |
|
16 #include <e32std.h> |
|
17 #include <e32base.h> |
|
18 #include <es_sock.h> |
|
19 |
|
20 |
|
21 class CSocketUser : public CActive |
|
22 { |
|
23 public: |
|
24 void SocketConnected(); |
|
25 protected: |
|
26 CSocketUser(RSocket& aSocket); |
|
27 ~CSocketUser(); |
|
28 TBool Connected() const; |
|
29 virtual void HandleSocketConnected() = 0; |
|
30 protected: |
|
31 RSocket& iSocket; |
|
32 private: |
|
33 TBool iConnected; |
|
34 }; |
|
35 |
|
36 |
|
37 #endif // __SOCKETUSER_H__ |
|
38 |