javacommons/gcfbase/inc/pendingconnectionlistener.h
branchRCL_3
changeset 19 04becd199f91
equal deleted inserted replaced
16:f5050f1da672 19:04becd199f91
       
     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:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef PENDINGCONNECTIONLISTENER_H
       
    19 #define PENDINGCONNECTIONLISTENER_H
       
    20 
       
    21 #include <string>
       
    22 
       
    23 namespace java
       
    24 {
       
    25 namespace push
       
    26 {
       
    27 /**
       
    28  * Server Connection Plugin informs Push Controller whether connection waits handing.
       
    29  * This interface is needed to support functionality of PushRegistry.listConnection() operation
       
    30  * in midp2.1 spec. This interface can be removed when implementation supports midp3 spec.
       
    31  */
       
    32 
       
    33 class PendingConnectionListener
       
    34 {
       
    35 public:
       
    36 
       
    37     virtual ~PendingConnectionListener() {}
       
    38 
       
    39     /**
       
    40      * This operation must be called when message arrives to the connection and
       
    41      * when application has opened a ServerConnection to read a arrived message.
       
    42      * Note: This operation must be called before ConnectionListener::msgArrived()
       
    43      * operation.
       
    44      * @param aUri        URI of the connection.
       
    45     * @param aMsgWaitsHandling Logic of this flag:
       
    46     *                    - Set it 'true' when message arrives to the connection.
       
    47     *                    - Set it 'false' when ServerConnection::open() operation has been called.
       
    48      */
       
    49     virtual void setPendingStatus(const std::wstring& aUri,bool aMsgWaitsHandling) = 0;
       
    50 
       
    51 };
       
    52 
       
    53 
       
    54 }//end namespace push
       
    55 }//end namespace java
       
    56 
       
    57 #endif // PENDINGCONNECTIONLISTENER_H