Nombre de lignes : 76 lignes
Afficher ce fichier en plein écran
- /*
- Qualité ChatRoom a ChatRoom.
- Copyright (C) 2012 KHABALI Anas
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-
- Contacte:
- Email: anas.khabali@gmail.com
- phone: +212676747779
- site : http://http://khabalisoft.e-monsite.com/
- */
-
- #ifndef MAINWINDOW_H
- #define MAINWINDOW_H
-
- #include <QMainWindow>
- #include <QTcpSocket>
- #include <QSound>
- #include "ui_mainwindow.h"
- #include "listeavatare.h"
-
- class MainWindow : public QMainWindow, public Ui::MainWindow
- {
- Q_OBJECT
- public:
- MainWindow(QWidget * parent = 0);
- private slots:
- void on_loginButton_clicked();
- void on_avatareButton_clicked();
- void on_actionStatut_triggred();
- void on_sayButton_clicked();
- void on_msgPButton_toggled(bool);
- void on_sayPButton_clicked();
- void on_bloquerButton_clicked();
- void on_debloquerButton_clicked();
- void on_couleur_clicked();
- void on_bold_toggled(bool);
- void on_italic_toggled(bool);
- void on_underlined_toggled(bool);
- void readyRead();
- void connected();
- void error();
- void closeConnection();
-
- void apropos();
- void apropos_Qt();
-
-
- private:
- bool isAdmin();
- bool isCommande();
- void connectComposant();
- bool selectedUser();
-
- QTcpSocket *socket;
- ListeAvatare *list;
- QString avatar;
- QString statut;
- QString color;
- bool bold, italic, underlined;
- QStringList rgb;
- };
-
- #endif // MAINWINDOW_H