emailservices/emailframework/inc/CFSClientAPI.h
changeset 0 8466d47a6819
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 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: Utility for email client (platform) api implementation to 
       
    15 *              instantiate request handler in email framework. The req
       
    16 *              handler is responsible for setting TLS.
       
    17 *
       
    18 */
       
    19 
       
    20 #ifndef CFSCLIENTAPI_H_
       
    21 #define CFSCLIENTAPI_H_
       
    22 
       
    23 #include <e32base.h>
       
    24 
       
    25 class CFSClientAPIRequestHandler;
       
    26 class MEmailClientPluginManager;
       
    27 
       
    28 /**
       
    29 * Utility for creating request handler from outside the library.
       
    30 */
       
    31 class CFSClientAPI : public CBase
       
    32     {
       
    33 public:
       
    34     
       
    35     // destructor
       
    36     virtual ~CFSClientAPI();
       
    37     
       
    38     /**
       
    39      * Two-phased constructor.
       
    40      *
       
    41      * @param aConfiguration loaded plugins
       
    42      */
       
    43      IMPORT_C static CFSClientAPI* NewL(
       
    44         MEmailClientPluginManager* aPluginManager );
       
    45 
       
    46 protected:
       
    47     
       
    48     // c++ constructor
       
    49     CFSClientAPI();
       
    50     
       
    51     /**
       
    52      * ConstructL
       
    53      */
       
    54      void ConstructL(MEmailClientPluginManager* aPluginManager);
       
    55     
       
    56      
       
    57 private:
       
    58     
       
    59     CFSClientAPIRequestHandler* iAPIRequestHandler;         
       
    60     };
       
    61 
       
    62 #endif /* CFSCLIENTAPI_H_ */