📄 iksdemoapp.h
字号:
/* Demo program for iksemel external sockets.** Copyright (C) 2005 Darrell Karbott (djk2005@users.sf.net)** This code is free software; you can redistribute it and/or** modify it under the terms of the GNU Public Licence (GPL) version 2** See http://www.gnu.org/ for further details of the GPL.*/#ifndef __IKSDEMOAPP_H__#define __IKSDEMOAPP_H__ 1#include <qstring.h>#include <qapplication.h>#include "iksdemo.h"#include "LoginDlg.h"#include "MsgScreen.h"/*** Qt application which connects to an CIksDemo instance** by implementing IUserInterface and calling methods** on IUserInteractions.*/class IksDemoApp : public QApplication, public IUserInterface { Q_OBJECT ; public: IksDemoApp( int & argc, char ** argv ); void setDemoInstance(CIksDemo* instance); virtual ~IksDemoApp(); public: // IUserInterface implementation virtual void displayJabberMsgFrom(const char* from, const char* msg ); virtual void displayStatusMsg(const char* msg); virtual void displayErrorMsg(const char* msg); virtual void updateConnectionStatus(int bConnected); virtual void handleRuntimeError(int error); public slots: // Slots that invoke the corresponding IUserInteractions // on the CIksDemo Instance. void onSendMsg(const QString& to, const QString& msg); void onConnect(); void onDisconnect(); private: LoginDialog* loginDlg_; MsgScreen* msgScreen_; CIksDemo* iksdemo_;};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -