networksecurity/ipsec/ipsecpol/inc/secpolreader.h
changeset 0 af10295192d8
equal deleted inserted replaced
-1:000000000000 0:af10295192d8
       
     1 // Copyright (c) 2005-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 // secpolreader.h - key management daemon security policy module
       
    15 //
       
    16 
       
    17 
       
    18 
       
    19 /**
       
    20  @internalComponent
       
    21 */
       
    22 #ifndef _SECPOLREADER_H_
       
    23 #define _SECPOLREADER_H_
       
    24 
       
    25 #include <es_sock.h>
       
    26 #include <in_sock.h>
       
    27 #include "ipsecpolmanhandler.h"
       
    28 
       
    29 //class CListenerControl;
       
    30 class CSecpolReader : public CActive
       
    31     {
       
    32     public:
       
    33         CSecpolReader(CIPSecPolicyManagerHandler* control);
       
    34         TInt Construct(const TDesC &aSocket);
       
    35         ~CSecpolReader() ;
       
    36     private:
       
    37         // active object stuff, completion and cancel callback functions
       
    38         void RunL();
       
    39         void DoCancel();
       
    40         TInt RunError(TInt aError);     
       
    41     private:
       
    42         // API call instance
       
    43         RSocket iSocket;
       
    44         TBuf8<1000> iMsg;
       
    45         TSockAddr iAddr;
       
    46         CIPSecPolicyManagerHandler *iControl;
       
    47     };
       
    48 #endif