javauis/nokiauiapi_qt/javasrc/com/nokia/mid/ui/SoftNotificationListener.java
author hgs
Fri, 17 Sep 2010 16:44:34 +0300
changeset 72 1f0034e370aa
permissions -rw-r--r--
v2.2.15_1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
72
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
     1
/*
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
     3
* All rights reserved.
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
     8
*
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
     9
* Initial Contributors:
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    11
*
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    12
* Contributors:
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    13
*
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    14
* Description:
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    15
*
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    16
*/
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    17
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    18
package com.nokia.mid.ui;
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    19
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    20
/**
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    21
 * <code>SoftNotificationListener</code> interface is used by applications which
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    22
 * need callbacks from soft notifications. Listener will get a notification when the
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    23
 * soft notification is either selected or dismissed by the user. Listener
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    24
 * interface can be registered with
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    25
 * {@link SoftNotification#setListener(SoftNotificationListener)} method.
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    26
 *
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    27
 * @see SoftNotification
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    28
 */
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    29
public interface SoftNotificationListener
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    30
{
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    31
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    32
    /**
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    33
     * Indicates that a soft notification was selected by the user. The
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    34
     * platform calls {@link SoftNotification#remove()} before
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    35
     * notificationSelected() is called. Application that posted the soft
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    36
     * notification is activated before the listener will get the notification.
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    37
     *
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    38
     * @param notification A notification object identifying the soft
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    39
     *          notification being responded to by the user. The MIDlet must
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    40
     *          implement the functionality to be performed when the
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    41
     *          notification is selected.
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    42
     */
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    43
    public abstract void notificationSelected(SoftNotification notification);
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    44
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    45
    /**
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    46
     * Indicates that a soft notification was dismissed by the user. The
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    47
     * platform calls {@link SoftNotification#remove()} before
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    48
     * notificationDismissed() is called.
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    49
     *
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    50
     * @param notification A notification object identifying the soft
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    51
     *          notification being responded to by the user. The application must
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    52
     *          implement the functionality to be performed when the soft
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    53
     *          notification is dismissed, it is not required to do anything.
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    54
     */
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    55
    public abstract void notificationDismissed(SoftNotification notification);
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    56
1f0034e370aa v2.2.15_1
hgs
parents:
diff changeset
    57
}