btobexprofiles/obexreceiveservices/bip/inc/BIPCapabilityHandler.h
changeset 32 19bd632b5100
equal deleted inserted replaced
31:a0ea99b6fa53 32:19bd632b5100
       
     1 /*
       
     2 * Copyright (c) 2002 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:  Capability object handler class declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef _BIPCAPABILITYHANDLER_H
       
    20 #define _BIPCAPABILITYHANDLER_H
       
    21 
       
    22 //INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <badesca.h>
       
    25 #include "debug.h"
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CBIPXmlWriter;
       
    29 class CImageTypeDescription;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 *  Creates an xml capability object
       
    35 */
       
    36 NONSHARABLE_CLASS (CBIPCapabilityHandler) : public CBase
       
    37     {
       
    38     public: //Constructors and destructors
       
    39         /**
       
    40         * Two-phased constructor.
       
    41         */
       
    42         static CBIPCapabilityHandler* NewL();
       
    43         
       
    44         /**
       
    45         * Destructor.
       
    46         */
       
    47         virtual ~CBIPCapabilityHandler();
       
    48 
       
    49     public:     //New Functions
       
    50                       
       
    51         /**
       
    52         * Creates an array of supported image types.
       
    53         * @param    aFileName       On return contains the name
       
    54         *                           of the file that was created
       
    55         * @return                   None.
       
    56         */
       
    57         void CreateCapabilityObjectL( TFileName& aFileName );
       
    58         
       
    59         /**
       
    60         * Creates an array of supported image types.
       
    61         * @param                    None.
       
    62         * @return                   None.
       
    63         */
       
    64         void SupportedImageTypesL( );
       
    65 
       
    66     private:
       
    67 
       
    68         /**
       
    69         * C++ default constructor.
       
    70         */
       
    71         CBIPCapabilityHandler();
       
    72 
       
    73         /**
       
    74         * Symbian 2nd phase constructor.
       
    75         */
       
    76         void ConstructL();
       
    77     
       
    78     private:    // Data
       
    79         CBIPXmlWriter*          iBIPXmlWriter;
       
    80         CDesC8ArrayFlat*        iImageTypeArray;
       
    81     };
       
    82 
       
    83 #endif      //_BIPCAPABILITYHANDLER_H
       
    84 
       
    85 // End of File