omacpadapters/WAPAdapter/Inc/WPWAPItemFactory.h
changeset 42 aa33c2cb9a50
equal deleted inserted replaced
41:c742e1129640 42:aa33c2cb9a50
       
     1 /*
       
     2 * Copyright (c) 2002-2006 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:  Factory for WAP items.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef WPITEMFACTORY_H
       
    20 #define WPITEMFACTORY_H
       
    21 
       
    22 // INCLUDE FILES
       
    23 #include <e32base.h>
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class MWPWAPItemBase;
       
    27 class CWPCharacteristic;
       
    28 class CCommsDatabase;
       
    29 class RCmConnectionMethodExt;
       
    30 class RCmDestinationExt;
       
    31 class CBookmarkDb;
       
    32 
       
    33 // CLASS DECLARATION
       
    34 class RCmManagerExt;
       
    35 /**
       
    36  * WPWAPItemFactory is a factory for all WAP items.
       
    37  *
       
    38  * @lib WPWAPAdapter
       
    39  * @since 2.0
       
    40  */ 
       
    41 class WPWAPItemFactory
       
    42     {
       
    43     public:
       
    44         /**
       
    45         * Create an MMS item.
       
    46         * @param aTitle Title for MMS items
       
    47         * @param aDefaultName Default name for MMS items
       
    48         * @param aCharacteristic The APPLICATION characteristic
       
    49         * @param aCommsDb The CommsDB to use. Created if NULL.
       
    50         * @param aAPHandler The APEngine data handler to use. Created if NULL.
       
    51         * @return MWPWAPItemBase instance
       
    52         */
       
    53         static MWPWAPItemBase* CreateMMSLC( const TDesC& aTitle, 
       
    54             const TDesC& aDefaultName, 
       
    55             CWPCharacteristic& aCharacteristic, 
       
    56             CCommsDatabase*& aCommsDb, 
       
    57             RCmManagerExt*& aCmManager );
       
    58 
       
    59 
       
    60         /**
       
    61         * Create a browser item.
       
    62         * @param aFirst ETrue if this browser item is first
       
    63         * @param aTitle Title for browser items
       
    64         * @param aBookmarkTitle Title for bookmark items
       
    65         * @param aDefaultName Default name for browser items
       
    66         * @param aCharacteristic The APPLICATION characteristic
       
    67         * @param aDb The CommsDB to use. Created if NULL.
       
    68         * @param aAPHandler The APEngine data handler to use. Created if NULL.
       
    69         * @param aBookmarkDb The bookmark database to use. Created if NULL.
       
    70         * @return MWPWAPItemBase instance
       
    71         */
       
    72         /*static MWPWAPItemBase* CreateBrowserLC( TBool aFirst,
       
    73             const TDesC& aTitle, 
       
    74             const TDesC& aBookmarkTitle,
       
    75             const TDesC& aDefaultName, 
       
    76             const TDesC& aDefaultBookmarkName,
       
    77             CWPCharacteristic& aCharacteristic, 
       
    78             CCommsDatabase*& aCommsDb, 
       
    79             RCmManagerExt*& aCmManager,
       
    80             RFavouritesDb aBookmarkDb );
       
    81             
       
    82         /**
       
    83         * Create a bookmark item.
       
    84         * @param aTitle The title to be returned in Name().
       
    85         * @param aDefaultName The default name for bookmarks.
       
    86         * @param aResource The RESOURCE characteristic.
       
    87         * @param aLink Link to NAPDEF
       
    88         * @param aDb The bookmark database to use. Created if NULL.
       
    89         * @return MWPWAPItemBase instance
       
    90         */
       
    91         static MWPWAPItemBase* CreateBookmarkLC( const TDesC& aTitle, 
       
    92             const TDesC& aDefaultName, 
       
    93             CWPCharacteristic& aResource, 
       
    94             CWPCharacteristic*& aNapdef);
       
    95 
       
    96     };
       
    97 
       
    98 
       
    99 #endif  // WPITEMFACTORY_H
       
   100             
       
   101 // End of File