smf/smfservermodule/smfcommon/smfobserver.h
changeset 18 013a02bf2bb0
equal deleted inserted replaced
17:106a4bfcb866 18:013a02bf2bb0
       
     1 
       
     2 /**
       
     3  * Copyright (c) 2010 Sasken Communication Technologies Ltd.
       
     4  * All rights reserved.
       
     5  * This component and the accompanying materials are made available
       
     6  * under the terms of the "Eclipse Public License v1.0"
       
     7  * which accompanies  this distribution, and is available
       
     8  * at the URL "http://www.eclipse.org/legal/epl-v10.html"
       
     9  *
       
    10  * Initial Contributors:
       
    11  * Chandradeep Gandhi, Sasken Communication Technologies Ltd - Initial contribution
       
    12  *
       
    13  * Contributors:
       
    14  * Manasij Roy, Nalina Hariharan
       
    15  *
       
    16  * Description:
       
    17  * Observer class to notify availability of asynchronous requests
       
    18  *
       
    19  */
       
    20 
       
    21 #ifndef SMFOBSERVER_H_
       
    22 #define SMFOBSERVER_H_
       
    23 
       
    24 #include <QObject>
       
    25 
       
    26 #include "smfglobal.h"
       
    27 
       
    28 // Forward declaration
       
    29 class QByteArray;
       
    30 
       
    31 /**
       
    32  * Observer class to notify availability of asynchronous requests
       
    33  */
       
    34 class smfObserver : public QObject
       
    35 	{
       
    36 public:
       
    37 	/**
       
    38 	 * To notify availibility of asynchronous requests.
       
    39 	 * @param result Requested result, before using must check error param.
       
    40 	 * @param opcode Requested opcode, for which the result has arrived.
       
    41 	 * @param error Error
       
    42 	 */
       
    43 	virtual void resultsAvailable(QByteArray result,SmfRequestTypeID opcode, SmfError error) = 0;
       
    44 	};
       
    45 
       
    46 #endif