tacticonserver/tacticonactionplugin/inc/tacticonactionplugin.h
changeset 0 d54f32e146dd
equal deleted inserted replaced
-1:000000000000 0:d54f32e146dd
       
     1 /*
       
     2 * Copyright (c) 2009 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:  A plug-in for disabling/enabling tacticons.
       
    15 * Part of:      Tacticon Server.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef C_TACTICONACTIONPLUGIN_H
       
    21 #define C_TACTICONACTIONPLUGIN_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <cfactionplugin.h> 
       
    25 #include <e32base.h>
       
    26 #include <tacticon.h>
       
    27 
       
    28 /**
       
    29 * Class CTacticonActionPlugIn.
       
    30 *
       
    31 * Disable/enable/play tacticons when needed.
       
    32 * Triggered when the conditions from the rule file are valid.
       
    33 */
       
    34 class CTacticonActionPlugIn : public CCFActionPlugIn
       
    35     {
       
    36 public:
       
    37 
       
    38     /**
       
    39      * Two phased constructor.
       
    40      * @since S60 5.2     
       
    41      */
       
    42     static CTacticonActionPlugIn* NewL();
       
    43 
       
    44     /**
       
    45      * Two phased constructor.
       
    46      * @since S60 5.2     
       
    47      */
       
    48     static CTacticonActionPlugIn* NewLC();
       
    49 
       
    50     /**
       
    51      * Destructor.
       
    52      * @since S60 5.2
       
    53      */
       
    54     virtual ~CTacticonActionPlugIn();
       
    55 
       
    56 public: // From CCFActionPlugIn
       
    57     /**
       
    58      * @see CCFActionPlugIn
       
    59      */
       
    60     void InitializeL();
       
    61 
       
    62     /**
       
    63      * @see CCFActionPlugIn
       
    64      */
       
    65     TExecutionTime ExecuteL(
       
    66         CCFActionIndication* aActionIndication );
       
    67                 
       
    68     /**
       
    69      * @see CCFActionPlugIn
       
    70      */
       
    71     void GetActionsL( CDesCArray& aActionList ) const;
       
    72     
       
    73     /**
       
    74      * @see CCFActionPlugIn
       
    75      */
       
    76     const TSecurityPolicy& SecurityPolicy() const;
       
    77    
       
    78 protected:
       
    79 
       
    80     /**
       
    81      * C++ constructor
       
    82      */
       
    83     CTacticonActionPlugIn();
       
    84     
       
    85 private: // data
       
    86     /**
       
    87      * Tacticon server interface.
       
    88      * Own.    
       
    89      */    
       
    90     RTacticon iTacticon;
       
    91 
       
    92     /**
       
    93      * Boolean value, which determines if tacticons are enabled 
       
    94      * during voice call.
       
    95      */
       
    96     TBool iEnabledDuringCall;
       
    97     
       
    98     /**
       
    99      * Tacticon settings bitmap, which determines Tacticon playback 
       
   100      * when voice call is connected/disconnected.
       
   101      */
       
   102     TInt iTacticonCallSettings;
       
   103     
       
   104     /**
       
   105      * Flag for proximity detection.
       
   106      */
       
   107     TBool iProximityDiscernible;
       
   108     
       
   109     /**
       
   110      * Flag for playing 'call connected' tacticon only when call
       
   111      * was initiated by this device.
       
   112      */
       
   113     TBool iCallInitiated;
       
   114     
       
   115     };
       
   116 
       
   117 #endif // C_TACTICONACTIONPLUGIN_H