networkprotocols/dnsproxy/dnsproxyupdateif/inc/dnsproxyupdateimpl.h
changeset 0 af10295192d8
equal deleted inserted replaced
-1:000000000000 0:af10295192d8
       
     1 // Copyright (c) 2008-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 
       
    17 
       
    18 /**
       
    19  @file
       
    20  @publishedPartner
       
    21 */
       
    22 #ifndef __CDNSPROXYUPDATEIMPL_H__
       
    23 #define __CDNSPROXYUPDATEIMPL_H__
       
    24 
       
    25 //user include files
       
    26 #include "dnsproxyupdateif.h"
       
    27 #include "dnsproxyclient.h"
       
    28 
       
    29 /**
       
    30 *Implementation class for ecom interface
       
    31 *
       
    32 */
       
    33 class CDNSProxyUpdateImpl : public CDNSProxyUpdateIf
       
    34 {
       
    35 public:
       
    36 
       
    37     /**
       
    38         *Factory method for CDNSProxyUpdateImpl
       
    39         */
       
    40     static CDNSProxyUpdateImpl* NewL();
       
    41 
       
    42     /**
       
    43         *C'tor of the class CDNSProxyUpdateImpl
       
    44         */
       
    45     CDNSProxyUpdateImpl();
       
    46 
       
    47     /**
       
    48         *2nd Phase constructor
       
    49         */
       
    50     void  ConstructL();
       
    51 
       
    52     /**
       
    53         *D'tor for the class CDNSProxyUpdateImpl
       
    54         */
       
    55     ~CDNSProxyUpdateImpl();
       
    56 
       
    57     /**
       
    58         * Interface function for adding entry to the DNS DB, this need to be implemented by the deriving class.
       
    59         */
       
    60     void AddDbEntry(const TDes8& aHostName, const TDes& aIpAddress, TRequestStatus& aStatus);
       
    61 
       
    62     /**
       
    63         *Interface function for removing entry from the DNS DB, this need to be implemented by the deriving class.
       
    64         */
       
    65     void RemoveDbEntry(const TDes& aIpAddress, TRequestStatus& aStatus);
       
    66 
       
    67 private:
       
    68     //Declaration of private member variable
       
    69     RDNSClient iDnsClient;
       
    70 };
       
    71 
       
    72 #endif /*__CDNSPROXYUPDATEIMPL_H__*/