devicemgmtindicatorsplugin/inc/dmpronoteindicators.h
author hgs
Fri, 17 Sep 2010 19:58:05 +0530
changeset 62 03849bd79877
parent 47 d316aecb87fd
permissions -rw-r--r--
201037
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
47
d316aecb87fd 201025_02
hgs
parents:
diff changeset
     1
/*
d316aecb87fd 201025_02
hgs
parents:
diff changeset
     2
 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
d316aecb87fd 201025_02
hgs
parents:
diff changeset
     3
 * All rights reserved.
d316aecb87fd 201025_02
hgs
parents:
diff changeset
     4
 * This component and the accompanying materials are made available
d316aecb87fd 201025_02
hgs
parents:
diff changeset
     5
 * under the terms of "Eclipse Public License v1.0"
d316aecb87fd 201025_02
hgs
parents:
diff changeset
     6
 * which accompanies this distribution, and is available
d316aecb87fd 201025_02
hgs
parents:
diff changeset
     7
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
d316aecb87fd 201025_02
hgs
parents:
diff changeset
     8
 *
d316aecb87fd 201025_02
hgs
parents:
diff changeset
     9
 * Initial Contributors:
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    10
 * Nokia Corporation - initial contribution.
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    11
 *
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    12
 * Contributors:
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    13
 *
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    14
 * Description: DM Progress and Notification Indicators classes
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    15
 *
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    16
 */
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    17
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    18
#ifndef DMINDICATORS_H
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    19
#define DMINDICATORS_H
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    20
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    21
#include <QObject>
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    22
#include <dmindicator.h>
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    23
#include <hbindicatorinterface.h>
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    24
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    25
/**
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    26
 * DM Progress and Notification indicators class. 
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    27
 * Handles client request and showing the indications. 
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    28
 */
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    29
class DMProNoteIndicator : public DMIndicator
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    30
    {
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    31
public:
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    32
    /**
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    33
     * Constructor
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    34
     */
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    35
    DMProNoteIndicator(const QString &indicatorType,
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    36
            HbIndicatorInterface::Category category,
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    37
            HbIndicatorInterface::InteractionTypes interactionTypes);
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    38
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    39
    /**
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    40
     * @see HbIndicatorInterface
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    41
     */
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    42
    bool handleInteraction(InteractionType type);
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    43
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    44
    /**
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    45
     * @see HbIndicatorInterface
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    46
     */
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    47
    QVariant indicatorData(int role) const;
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    48
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    49
    };
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    50
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    51
/**
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    52
 * Scomo Progress and Notification indicators class. 
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    53
 * Handles client request and showing the indications. 
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    54
 */
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    55
class ScomoProNoteIndicator : public DMProNoteIndicator
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    56
    {
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    57
public:
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    58
    /**
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    59
     * Constructor
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    60
     */
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    61
    ScomoProNoteIndicator(const QString &indicatorType,
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    62
            HbIndicatorInterface::Category category,
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    63
            HbIndicatorInterface::InteractionTypes interactionTypes);
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    64
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    65
    /**
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    66
     * @see HbIndicatorInterface
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    67
     */
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    68
    bool handleInteraction(InteractionType type);
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    69
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    70
    };
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    71
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    72
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    73
#endif // DMINDICATORS_H