contentstorage/handlerinc/caurlhandlerplugin.h
changeset 61 8e5041d13c84
parent 60 f62f87b200ec
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 __CCAURLHANDLERPLUGIN_H__
       
    19 #define __CCAURLHANDLERPLUGIN_H__
       
    20 
       
    21 #include "cahandlerplugin.h"
       
    22 
       
    23 #include <e32base.h>
       
    24 
       
    25 // Constants
       
    26 const TUid KUidBrowser =
       
    27     {
       
    28     0x10008D39
       
    29     };
       
    30 _LIT( KBrowserPrefix, "4 " );
       
    31 
       
    32 /**
       
    33  * Handler for entries with typenme "url".
       
    34  */
       
    35 NONSHARABLE_CLASS( CCaUrlHandlerPlugin ): public CCaHandlerPlugin
       
    36     {
       
    37 
       
    38 public:
       
    39     // construction
       
    40 
       
    41     /**
       
    42      * Destructor.
       
    43      */
       
    44     virtual ~CCaUrlHandlerPlugin();
       
    45 
       
    46     /**
       
    47      * Two-phased constructor. Leaves on failure.
       
    48      * @return The constructed object.
       
    49      */
       
    50     static CCaUrlHandlerPlugin* NewL();
       
    51 
       
    52 protected:
       
    53     // construction
       
    54 
       
    55     /**
       
    56      * Constructor.
       
    57      * @param aMenu Menu.
       
    58      */
       
    59     CCaUrlHandlerPlugin();
       
    60 
       
    61     /**
       
    62      * Second-phase constructor.
       
    63      */
       
    64     void ConstructL();
       
    65 
       
    66 public:
       
    67 
       
    68     /**
       
    69      * Query support for item type.
       
    70      * @param aType Type.
       
    71      * @return ETrue if handler supports this type, EFalse otherwise.
       
    72      */
       
    73     TBool SupportsType( const TDesC& aType );
       
    74 
       
    75     /**
       
    76      * Handle command.
       
    77      * @param aEntry The url entry to be processed.
       
    78      * @param aCommand Command.
       
    79      */
       
    80     void HandleCommandL( CCaInnerEntry& aEntry, const TDesC8& aCommand );
       
    81 
       
    82 private:
       
    83     // internal
       
    84 
       
    85     /**
       
    86      * Launches the url.
       
    87      * @param aUrl The url to be launched.
       
    88      */
       
    89     void LaunchUrlL( const TDesC& aUrl );
       
    90 
       
    91     };
       
    92 
       
    93 #endif // __CCAURLHANDLERPLUGIN_H__