phonebookui/Phonebook2/remotecontactlookup/contactactionservice/inc/tfsccontactactionvisibility.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     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:  Declaration of class TFscContactActionVisibility.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef T_FSCCONTACTACTIONVISIBILITY_H
       
    20 #define T_FSCCONTACTACTIONVISIBILITY_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 // FORWARD DECLARATIONS
       
    25 
       
    26 /**
       
    27  *  Contact Action Visibility.
       
    28  *
       
    29  *  @since S60 3.1
       
    30  */
       
    31 class TFscContactActionVisibility
       
    32     {
       
    33 
       
    34 public: // Enums
       
    35     
       
    36     /*
       
    37      * Visibility state enumeration
       
    38      */
       
    39     enum TVisibility
       
    40         {
       
    41         EFscActionVisible,
       
    42         EFscActionDimmed,
       
    43         EFscActionHidden
       
    44         };
       
    45     
       
    46 public: // Public constructors
       
    47   
       
    48     /**
       
    49      * Default constructor
       
    50      */
       
    51     TFscContactActionVisibility() {}
       
    52 
       
    53     /**
       
    54      * Constructor
       
    55      *
       
    56      * @param aVisibility Visibility of action
       
    57      * @param aReasonId Reason id for the visibility. 
       
    58      *   Reason ids are defined and returned by action plug-ins. 
       
    59      *   Reason id can be used to ask a reason for given visibility 
       
    60      *   using MFscContactAction::ReasonL method. If action does not 
       
    61      *   have specific reason for visibility, 0 is used.
       
    62      */
       
    63     TFscContactActionVisibility( 
       
    64         TVisibility aVisibility,
       
    65         TInt aReasonId ) 
       
    66     : iVisibility( aVisibility ), 
       
    67       iReasonId( aReasonId ) {}
       
    68 
       
    69 public: // Public variables
       
    70 
       
    71     TVisibility iVisibility; // Item visibility
       
    72     TInt iReasonId; // Reason id for the visibility
       
    73     
       
    74     };
       
    75 
       
    76 #endif // T_FSCCONTACTACTIONVISIBILITY_H