contentstorage/cahandler/url/inc/caurlhandler.h
changeset 61 8e5041d13c84
child 66 32469d7d46ff
equal deleted inserted replaced
60:f62f87b200ec 61:8e5041d13c84
       
     1 /*
       
     2  * Copyright (c) 2008 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:  ?Description
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef __CCAURLHANDLER_H__
       
    19 #define __CCAURLHANDLER_H__
       
    20 
       
    21 #include <e32base.h>
       
    22 
       
    23 class CCaInnerEntry;
       
    24 
       
    25 // Constants
       
    26 const TUid KUidBrowser =
       
    27     {
       
    28     0x10008D39
       
    29     };
       
    30 _LIT( KBrowserPrefix, "4 " );
       
    31 
       
    32 /**
       
    33  *  Command handler for url entries.
       
    34  *
       
    35  *  @lib caclient.lib
       
    36  */
       
    37 NONSHARABLE_CLASS( CCaUrlHandler )
       
    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 
       
    68 public:
       
    69 
       
    70 
       
    71     /**
       
    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 
       
    78 private:
       
    79     // internal
       
    80 
       
    81     /**
       
    82      * Launches the url.
       
    83      * @param aUrl The url to be launched.
       
    84      */
       
    85     void LaunchUrlL( const TDesC& aUrl );
       
    86 
       
    87     };
       
    88 
       
    89 #endif // __CCAURLHANDLER_H__