contentstorage/cahandler/url/inc/caurlhandler.h
changeset 83 156f692b1687
parent 66 32469d7d46ff
child 116 305818acdca4
equal deleted inserted replaced
80:397d00875918 83:156f692b1687
    13  *
    13  *
    14  * Description:  ?Description
    14  * Description:  ?Description
    15  *
    15  *
    16  */
    16  */
    17 
    17 
    18 #ifndef __CCAURLHANDLER_H__
    18 #ifndef CAURLHANDLER_H
    19 #define __CCAURLHANDLER_H__
    19 #define CAURLHANDLER_H
    20 
    20 
    21 #include <e32base.h>
    21 #include "cahandler.h"
    22 
    22 
    23 class CCaInnerEntry;
    23 class QString;
    24 
    24 
    25 // Constants
    25 class CaUrlHandler: public QObject, public CaHandler
    26 const TUid KUidBrowser =
    26 {
    27     {
    27     Q_OBJECT
    28     0x10008D39
    28     Q_INTERFACES(CaHandler)
    29     };
       
    30 _LIT( KBrowserPrefix, "4 " );
       
    31 
       
    32 /**
       
    33  *  Command handler for url entries.
       
    34  *
       
    35  *  @lib caclient.lib
       
    36  */
       
    37 NONSHARABLE_CLASS( CCaUrlHandler ): public CBase
       
    38     {
       
    39 
       
    40 public:
       
    41     // construction
       
    42 
       
    43     /**
       
    44      * Destructor.
       
    45      */
       
    46     virtual ~CCaUrlHandler();
       
    47 
       
    48     /**
       
    49      * Two-phased constructor. Leaves on failure.
       
    50      * @return The constructed object.
       
    51      */
       
    52     static CCaUrlHandler* NewL();
       
    53 
       
    54 protected:
       
    55     // construction
       
    56 
       
    57     /**
       
    58      * Constructor.
       
    59      * @param aMenu Menu.
       
    60      */
       
    61     CCaUrlHandler();
       
    62 
       
    63     /**
       
    64      * Second-phase constructor.
       
    65      */
       
    66     void ConstructL();
       
    67 
    29 
    68 public:
    30 public:
    69 
    31 
       
    32     explicit CaUrlHandler(QObject *parent = 0);
    70 
    33 
    71     /**
    34     virtual ~CaUrlHandler();
    72      * Handle command.
       
    73      * @param aEntry The url entry to be processed.
       
    74      * @param aCommand Command.
       
    75      */
       
    76     void HandleCommandL( CCaInnerEntry& aEntry, const TDesC8& aCommand );
       
    77 
    35 
    78 private:
    36     int execute(const CaEntry &entry, const QString &command);
    79     // internal
       
    80 
    37 
    81     /**
    38 };
    82      * Launches the url.
       
    83      * @param aUrl The url to be launched.
       
    84      */
       
    85     void LaunchUrlL( const TDesC& aUrl );
       
    86 
    39 
    87     };
    40 #endif // CAURLHANDLER_H
    88 
       
    89 #endif // __CCAURLHANDLER_H__