usbuis/usbindicatorplugin/inc/usbindicator.h
branchRCL_3
changeset 80 e02eb84a14d2
parent 79 25fce757be94
child 83 60826dff342d
equal deleted inserted replaced
79:25fce757be94 80:e02eb84a14d2
     1 /*
       
     2 * Copyright (c) 2010 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: USB Indicator Class
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef USBINDICATOR_H
       
    19 #define USBINDICATOR_H
       
    20 
       
    21 #include "usbindicatorplugin.h"
       
    22 #include <hbindicatorinterface.h>
       
    23 
       
    24 #define KUsbIconFile "qtg_large_usb"
       
    25 
       
    26 /**
       
    27  * USB indicator class. 
       
    28  * Handles client request and showing the indications. 
       
    29  */
       
    30 class USBIndicator : public HbIndicatorInterface
       
    31 {
       
    32     friend class TestUsbIndicatorPlugin;
       
    33     
       
    34 public:
       
    35     /**
       
    36      * Constructor
       
    37      */
       
    38     USBIndicator(const QString &indicatorType);
       
    39     
       
    40     /**
       
    41      * Destructor
       
    42      */
       
    43     ~USBIndicator();
       
    44     
       
    45     /**
       
    46      * @see HbIndicatorInterface
       
    47      */
       
    48     bool handleInteraction(InteractionType type);
       
    49     
       
    50     /**
       
    51      * @see HbIndicatorInterface
       
    52      */
       
    53     QVariant indicatorData(int role) const;
       
    54     
       
    55 protected:
       
    56     /**
       
    57      * @see HbIndicatorInterface
       
    58      */
       
    59     bool handleClientRequest(RequestType type, const QVariant &parameter);
       
    60     
       
    61 private: 
       
    62 
       
    63     QString mSecDisplayName;
       
    64 };
       
    65 
       
    66 #endif /* USBINDICATOR_H*/
       
    67 
       
    68 
       
    69 
       
    70