usbuis/usbindicatorplugin/inc/usbmassstorageindicator.h
branchRCL_3
changeset 23 25fce757be94
equal deleted inserted replaced
22:5b2a402e96ac 23:25fce757be94
       
     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 Mass Storage Indicator Class
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef USBMASSSTORAGEINDICATOR_H
       
    19 #define USBMASSSTORAGEINDICATOR_H
       
    20 
       
    21 #include <hbindicatorinterface.h>
       
    22 #include "usbindicatorplugin.h"
       
    23 
       
    24 /**
       
    25  * USB mass storage indicator class. 
       
    26  * Handles client request and showing the indications. 
       
    27  */
       
    28 class UsbMassStorageIndicator : public HbIndicatorInterface
       
    29 {
       
    30     friend class TestUsbIndicatorPlugin;
       
    31     
       
    32 public:
       
    33     /**
       
    34      * Constructor
       
    35      */
       
    36     UsbMassStorageIndicator(const QString &indicatorType);
       
    37     
       
    38     /**
       
    39      * Destructor
       
    40      */
       
    41     ~UsbMassStorageIndicator();
       
    42     
       
    43     /**
       
    44      * @see HbIndicatorInterface
       
    45      */
       
    46     bool handleInteraction(InteractionType type);
       
    47     
       
    48     /**
       
    49      * @see HbIndicatorInterface
       
    50      */
       
    51     QVariant indicatorData(int role) const;
       
    52     
       
    53 protected:
       
    54     /**
       
    55      * @see HbIndicatorInterface
       
    56      */
       
    57     bool handleClientRequest(RequestType type, const QVariant &parameter);
       
    58     
       
    59 private: 
       
    60 
       
    61     QString mSecDisplayName;
       
    62     
       
    63     bool mEjectStarted;
       
    64 };
       
    65 
       
    66 #endif /* USBMASSSTORAGEINDICATOR_H */