iksdemoapp.h

来自「symbina上可以使用一个xml解析器,对开发网络应用很有好处」· C头文件 代码 · 共 54 行

H
54
字号
/* 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 + =
减小字号Ctrl + -
显示快捷键?