You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

chatmanager.h 647B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef CHATMANAGER_H
  2. #define CHATMANAGER_H
  3. #include <QObject>
  4. #include <QApplication>
  5. #include "netsoul.h"
  6. #include "dialogchat.h"
  7. class ChatManager : public QObject
  8. {
  9. Q_OBJECT
  10. public:
  11. explicit ChatManager(QObject *parent = 0);
  12. ~ChatManager();
  13. signals:
  14. void sendMessageRequested(NetSoul::User, QString);
  15. public slots:
  16. void chat(NetSoul::Users users);
  17. void newMessage(NetSoul::Message msg);
  18. void setMe(NetSoul::User user);
  19. private slots:
  20. void dlgChatsendMessage(NetSoul::User usr, QString msg);
  21. private:
  22. DialogChat* getChatWindow(NetSoul::User user);
  23. QList<DialogChat*> m_dlgChat;
  24. NetSoul::User m_me;
  25. };
  26. #endif // CHATMANAGER_H