taskswitcher/server/tsrc/t_tsservicesprovider/t_tsservicesprovider.h
changeset 117 c63ee96dbe5f
equal deleted inserted replaced
115:3ab5c078b490 117:c63ee96dbe5f
       
     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 #ifndef T_TSSERVICESPROVIDER_H
       
    18 #define T_TSSERVICESPROVIDER_H
       
    19 
       
    20 #include <QObject>
       
    21 #include <QEventLoop>
       
    22 #include <tsmodelobserver.h>
       
    23 #include "tsdataobserver.h"
       
    24 class CTsServiceProviderConfig;
       
    25 class T_TsServiceProvider : public QObject,
       
    26                             public MTsModelObserver,
       
    27                             public MTsDataObserver
       
    28 {
       
    29     Q_OBJECT
       
    30 public:
       
    31     void dataChanged(MTsModel &model);
       
    32     void dataChanged(const TTsModelItem &item);
       
    33     void DataChanged();
       
    34 
       
    35 private slots:
       
    36     void testProvider();
       
    37     void testService();
       
    38     void testServiceObserver();
       
    39 
       
    40 signals:
       
    41     void someSignal();
       
    42 private:
       
    43     int mNotyfications;
       
    44     QEventLoop mLoop;
       
    45 };
       
    46 #endif //T_TSSERVICESPROVIDER_H