|
1 /* |
|
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "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 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Header file for RNDIS uplink authorization notifier |
|
15 * |
|
16 */ |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 #ifndef RNDISAUTHORIZATIONNOTIFIER_H |
|
24 #define RNDISAUTHORIZATIONNOTIFIER_H |
|
25 |
|
26 #include <e32base.h> // CBase |
|
27 #include <e32std.h> // TBuf |
|
28 #include <eiknotapi.h> // For MEikSrvNotifierBase2 |
|
29 |
|
30 NONSHARABLE_CLASS(CRndisAuthorizationNotifier) |
|
31 : public CBase |
|
32 , public MEikSrvNotifierBase2 |
|
33 { |
|
34 public: |
|
35 // Create CRndisAuthorizationNotifier. |
|
36 static CRndisAuthorizationNotifier* NewLC(); |
|
37 // Destructor |
|
38 virtual ~CRndisAuthorizationNotifier(); |
|
39 |
|
40 public: |
|
41 // virtual functions from MEikSrvNotifierBase2 |
|
42 virtual void Release(); |
|
43 virtual TNotifierInfo RegisterL(); |
|
44 virtual TNotifierInfo Info() const; |
|
45 virtual void StartL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage); |
|
46 virtual TPtrC8 StartL(const TDesC8& aBuffer); |
|
47 virtual void Cancel(); |
|
48 virtual TPtrC8 UpdateL(const TDesC8& aBuffer); |
|
49 |
|
50 private: |
|
51 CRndisAuthorizationNotifier(); |
|
52 void ConstructL(); |
|
53 |
|
54 private: |
|
55 TNotifierInfo iInfo; |
|
56 }; |
|
57 |
|
58 #endif //RNDISAUTHORIZATIONNOTIFIER_H |