idlefw/plugins/shortcutplugin/inc/caiscuttargetempty.h
branchRCL_3
changeset 8 d0529222e3f0
parent 4 1a2a00e78665
child 11 bd874ee5e5e2
equal deleted inserted replaced
4:1a2a00e78665 8:d0529222e3f0
     1 /*
       
     2 * Copyright (c) 2005-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:  Empty target
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CAISCUTEMPTY_H
       
    20 #define CAISCUTEMPTY_H
       
    21 
       
    22 #include "caiscuttarget.h"
       
    23 
       
    24 /**
       
    25  *  Empty target.
       
    26  *
       
    27  *  @since S60 v3.2
       
    28  */
       
    29 class CAiScutTargetEmpty : public CAiScutTarget
       
    30 {
       
    31 public:     // Constructors and destructor
       
    32 
       
    33     /**
       
    34      * Two-phased constructor.
       
    35      * @param
       
    36      * @return new instance.
       
    37      */
       
    38     static CAiScutTargetEmpty* NewL(
       
    39         CAiScutEngine& aEngine, TShortcutType aType, const TDesC& aTarget );
       
    40 
       
    41     /**
       
    42      * Destructor.
       
    43      */
       
    44     virtual ~CAiScutTargetEmpty();
       
    45 
       
    46     /**
       
    47      * Returns the shortcut definition string
       
    48      *
       
    49      * @since S60 v3.2
       
    50      * @return Shortcut definition string
       
    51      */
       
    52     TPtrC Definition() const;
       
    53 
       
    54     /**
       
    55      * See base class
       
    56      */
       
    57     TInt GetCaption(TPtrC& aDes, TAiScutAppTitleType aTitleType) const;
       
    58 
       
    59     /**
       
    60      * See base class
       
    61      */
       
    62     TInt GetIcon(CGulIcon*& aIcon) const;
       
    63 
       
    64     /**
       
    65 	 * See base class
       
    66      */
       
    67     TBool IsAccessibleL(TInt aCheckType);
       
    68 
       
    69     /**
       
    70      * Launches the shortcut
       
    71      *
       
    72      * @since S60 v3.2
       
    73      */
       
    74     void LaunchL();
       
    75 
       
    76     /**
       
    77      * Return application uid this target launches.
       
    78      *
       
    79      * @since S60 v3.2
       
    80      */
       
    81     TUid AppUid() const;
       
    82 
       
    83 private: // New methods
       
    84 
       
    85     /**
       
    86      * C++ default constructor.
       
    87      */
       
    88     CAiScutTargetEmpty( CAiScutEngine& aEngine, TShortcutType aType );
       
    89 
       
    90     /**
       
    91      * By default Symbian OS constructor is private.
       
    92      */
       
    93     void ConstructL( const TDesC& aTarget );
       
    94 
       
    95 private:  // Data
       
    96 
       
    97     /**
       
    98      * Holds the shortcut definition string
       
    99      * Owned.
       
   100      */
       
   101     HBufC*              iDefinition;
       
   102 
       
   103 };
       
   104 
       
   105 #endif
       
   106 
       
   107 // End of File.