messagingapp/msgutils/unidatamodel/unismsdataplugin/inc/sessioneventhandler.h
changeset 23 238255e8b033
equal deleted inserted replaced
5:4697dfb2d7ad 23:238255e8b033
       
     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 UNISMSDATAPLUGIN_SH_H_
       
    19 #define UNISMSDATAPLUGIN_SH_H_
       
    20 
       
    21 #include <QObject>
       
    22 #include <QThread>
       
    23 
       
    24 #include <msvapi.h>
       
    25 
       
    26 
       
    27 class SessionEventHandler : public QThread,
       
    28 public MMsvSessionObserver
       
    29 {
       
    30     Q_OBJECT
       
    31 public:
       
    32     SessionEventHandler(QThread* parent=0);
       
    33     ~SessionEventHandler();
       
    34 
       
    35 public:
       
    36 
       
    37     /**
       
    38      * @see MMsvSessionObserver
       
    39      */
       
    40     void HandleSessionEventL(TMsvSessionEvent aEvent, TAny* aArg1, TAny* aArg2,
       
    41         TAny* aArg3);
       
    42 
       
    43 private:
       
    44     void run();
       
    45 
       
    46 };
       
    47 
       
    48 #endif /* UNISMSDATAPLUGIN_SH_H_ */