equal
deleted
inserted
replaced
|
1 // Copyright (c) 2004-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 // The DNS Update abstract plug-in interface |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file DNSUpdateIf.h |
|
20 */ |
|
21 |
|
22 #ifndef __DNSUPDATEIF_H__ |
|
23 #define __DNSUPDATEIF_H__ |
|
24 |
|
25 #include <e32base.h> |
|
26 #include <ecom/ecom.h> |
|
27 |
|
28 class CDnsUpdateIf : public CBase |
|
29 { |
|
30 |
|
31 public: |
|
32 // Wraps ECom object instantitation |
|
33 static CDnsUpdateIf* NewL(); |
|
34 // Wraps ECom object destruction |
|
35 virtual ~CDnsUpdateIf(); |
|
36 |
|
37 virtual void Update(TDesC& aInterfaceName, TDesC8* aHostName, TDesC8* aDomainName) = 0; |
|
38 |
|
39 private: |
|
40 // Instance identifier key |
|
41 TUid iDtor_ID_Key; |
|
42 }; |
|
43 |
|
44 //keep the destructor inline even though it's virtual so that |
|
45 //the plug-in doesn't have to link against us |
|
46 inline CDnsUpdateIf::~CDnsUpdateIf() |
|
47 { |
|
48 REComSession::DestroyedImplementation(iDtor_ID_Key); |
|
49 } |
|
50 |
|
51 #endif |