qtms/inc/qtmsstreamimpl.h
branchRCL_3
changeset 56 63223d4fd956
parent 55 6c1dfe4da5dd
child 59 666f9a5a90a9
equal deleted inserted replaced
55:6c1dfe4da5dd 56:63223d4fd956
     1 /*
       
     2  * Copyright (c) 2010 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: QT Bindings for TMS
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef QTMS_STREAM_IMPL_H
       
    19 #define QTMS_STREAM_IMPL_H
       
    20 
       
    21 #include <qtms.h>
       
    22 #include <qtmsstream.h>
       
    23 #include <tmsstreamobsrvr.h>
       
    24 #include <QObject>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 namespace TMS
       
    28 {
       
    29 class TMSStream;
       
    30 }
       
    31 
       
    32 namespace QTMS
       
    33 {
       
    34 
       
    35 // QTMSStreamImpl class
       
    36 class QTMSStreamImpl: public QTMSStream, public TMS::TMSStreamObserver
       
    37 {
       
    38 public:
       
    39     static gint Create(QTMSCallType callType, QTMSStreamType stype, QTMSStream*& qstrm,
       
    40         TMS::TMSStream*& tmsstrm);
       
    41 
       
    42     virtual ~QTMSStreamImpl();
       
    43 
       
    44     // From QTMSStreamBody
       
    45     gint AddObserver(TMS::TMSStreamObserver& obsrvr, gpointer user_data);
       
    46     gint RemoveObserver(TMS::TMSStreamObserver& obsrvr);
       
    47 
       
    48     // From TMSStreamObserver
       
    49     void TMSStreamEvent(const TMS::TMSStream& stream, TMS::TMSSignalEvent event);
       
    50 
       
    51 protected:
       
    52     QTMSStreamImpl();
       
    53 
       
    54     gint PostConstruct(QTMSCallType callType, QTMSStreamType stype, QTMSStream& parent);
       
    55 
       
    56     gint CreateQueue(const gint aNumSlots);
       
    57     void ReceiveMsgQHandlerEventsL();
       
    58 };
       
    59 
       
    60 } //namespace QTMS
       
    61 
       
    62 #endif // QTMS_STREAM_IMPL_H
       
    63 // End of file