phoneuis/bubblemanager2/tsrc/bubbletest2/bubbletester/mainwindow.h
branchGCC_SURGE
changeset 51 f39ed5e045e0
parent 40 bab96b7ed1a4
parent 46 bc5a64e5bc3c
equal deleted inserted replaced
40:bab96b7ed1a4 51:f39ed5e045e0
     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:  Animated icon.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MAINWINDOW_H
       
    19 #define MAINWINDOW_H
       
    20 
       
    21 #include <QtGui/QMainWindow>
       
    22 
       
    23 namespace Ui
       
    24 {
       
    25     class MainWindow;
       
    26 }
       
    27 
       
    28 class QLocalServer;
       
    29 class QLocalSocket;
       
    30 class QLabel;
       
    31 class BubbleData;
       
    32 
       
    33 class MainWindow : public QMainWindow
       
    34 {
       
    35     Q_OBJECT
       
    36 
       
    37 public:
       
    38     MainWindow(QWidget *parent = 0);
       
    39     ~MainWindow();
       
    40 
       
    41     bool start();
       
    42 
       
    43 private slots:
       
    44     void clientConnected();
       
    45     void clientDisconnected();
       
    46 
       
    47     void bubbleChanged();
       
    48     void updateName();
       
    49     void updateNumber();
       
    50     void updateState();
       
    51     void updateDivert(int);
       
    52     void updateMute(int);
       
    53 
       
    54     void sendData();
       
    55 
       
    56 private:
       
    57     void initUi();
       
    58 
       
    59 private:
       
    60     Ui::MainWindow *ui;
       
    61 
       
    62     QLocalServer *mServer;
       
    63     QLocalSocket *mClientConnection;
       
    64     QLabel       *mStatusLabel;
       
    65     BubbleData   *mDataModel;
       
    66     QString      mBubbleId;
       
    67 };
       
    68 
       
    69 #endif // MAINWINDOW_H