contentstorage/cahandler/url/inc/caurlhandler.h
author hgs
Fri, 30 Apr 2010 15:22:08 +0300
changeset 93 82b66994846c
parent 92 782e3408c2ab
child 83 156f692b1687
permissions -rw-r--r--
201017
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
88
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
 * All rights reserved.
hgs
parents:
diff changeset
     4
 * This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
 * under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
 * which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
 *
hgs
parents:
diff changeset
     9
 * Initial Contributors:
hgs
parents:
diff changeset
    10
 * Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
 *
hgs
parents:
diff changeset
    12
 * Contributors:
hgs
parents:
diff changeset
    13
 *
hgs
parents:
diff changeset
    14
 * Description:  ?Description
hgs
parents:
diff changeset
    15
 *
hgs
parents:
diff changeset
    16
 */
hgs
parents:
diff changeset
    17
hgs
parents:
diff changeset
    18
#ifndef __CCAURLHANDLER_H__
hgs
parents:
diff changeset
    19
#define __CCAURLHANDLER_H__
hgs
parents:
diff changeset
    20
hgs
parents:
diff changeset
    21
#include <e32base.h>
hgs
parents:
diff changeset
    22
hgs
parents:
diff changeset
    23
class CCaInnerEntry;
hgs
parents:
diff changeset
    24
hgs
parents:
diff changeset
    25
// Constants
hgs
parents:
diff changeset
    26
const TUid KUidBrowser =
hgs
parents:
diff changeset
    27
    {
hgs
parents:
diff changeset
    28
    0x10008D39
hgs
parents:
diff changeset
    29
    };
hgs
parents:
diff changeset
    30
_LIT( KBrowserPrefix, "4 " );
hgs
parents:
diff changeset
    31
hgs
parents:
diff changeset
    32
/**
hgs
parents:
diff changeset
    33
 *  Command handler for url entries.
hgs
parents:
diff changeset
    34
 *
hgs
parents:
diff changeset
    35
 *  @lib caclient.lib
hgs
parents:
diff changeset
    36
 */
92
hgs
parents: 88
diff changeset
    37
NONSHARABLE_CLASS( CCaUrlHandler ): public CBase
88
hgs
parents:
diff changeset
    38
    {
hgs
parents:
diff changeset
    39
hgs
parents:
diff changeset
    40
public:
hgs
parents:
diff changeset
    41
    // construction
hgs
parents:
diff changeset
    42
hgs
parents:
diff changeset
    43
    /**
hgs
parents:
diff changeset
    44
     * Destructor.
hgs
parents:
diff changeset
    45
     */
hgs
parents:
diff changeset
    46
    virtual ~CCaUrlHandler();
hgs
parents:
diff changeset
    47
hgs
parents:
diff changeset
    48
    /**
hgs
parents:
diff changeset
    49
     * Two-phased constructor. Leaves on failure.
hgs
parents:
diff changeset
    50
     * @return The constructed object.
hgs
parents:
diff changeset
    51
     */
hgs
parents:
diff changeset
    52
    static CCaUrlHandler* NewL();
hgs
parents:
diff changeset
    53
hgs
parents:
diff changeset
    54
protected:
hgs
parents:
diff changeset
    55
    // construction
hgs
parents:
diff changeset
    56
hgs
parents:
diff changeset
    57
    /**
hgs
parents:
diff changeset
    58
     * Constructor.
hgs
parents:
diff changeset
    59
     * @param aMenu Menu.
hgs
parents:
diff changeset
    60
     */
hgs
parents:
diff changeset
    61
    CCaUrlHandler();
hgs
parents:
diff changeset
    62
hgs
parents:
diff changeset
    63
    /**
hgs
parents:
diff changeset
    64
     * Second-phase constructor.
hgs
parents:
diff changeset
    65
     */
hgs
parents:
diff changeset
    66
    void ConstructL();
hgs
parents:
diff changeset
    67
hgs
parents:
diff changeset
    68
public:
hgs
parents:
diff changeset
    69
hgs
parents:
diff changeset
    70
hgs
parents:
diff changeset
    71
    /**
hgs
parents:
diff changeset
    72
     * Handle command.
hgs
parents:
diff changeset
    73
     * @param aEntry The url entry to be processed.
hgs
parents:
diff changeset
    74
     * @param aCommand Command.
hgs
parents:
diff changeset
    75
     */
hgs
parents:
diff changeset
    76
    void HandleCommandL( CCaInnerEntry& aEntry, const TDesC8& aCommand );
hgs
parents:
diff changeset
    77
hgs
parents:
diff changeset
    78
private:
hgs
parents:
diff changeset
    79
    // internal
hgs
parents:
diff changeset
    80
hgs
parents:
diff changeset
    81
    /**
hgs
parents:
diff changeset
    82
     * Launches the url.
hgs
parents:
diff changeset
    83
     * @param aUrl The url to be launched.
hgs
parents:
diff changeset
    84
     */
hgs
parents:
diff changeset
    85
    void LaunchUrlL( const TDesC& aUrl );
hgs
parents:
diff changeset
    86
hgs
parents:
diff changeset
    87
    };
hgs
parents:
diff changeset
    88
hgs
parents:
diff changeset
    89
#endif // __CCAURLHANDLER_H__