资源简介
linux系统下网络编程代码
聊天工具
代码片段和文件信息
/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** Contact: Qt Software Information (qt-info@nokia.com)
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial Usage
** Licensees holding valid Qt Commercial licenses may use this file in
** accordance with the Qt Commercial License Agreement provided with the
** Software or alternatively in accordance with the terms contained in
** a written agreement between you and Nokia.
**
** GNU Lesser General Public License Usage
** Alternatively this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition as a special exception Nokia gives you certain
** additional rights. These rights are described in the Nokia Qt LGPL
** Exception version 1.0 included in the file LGPL_EXCEPTION.txt in this
** package.
**
** GNU General Public License Usage
** Alternatively this file may be used under the terms of the GNU
** General Public License version 3.0 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU General Public License version 3.0 requirements will be
** met: http://www.gnu.org/copyleft/gpl.html.
**
** If you are unsure which license is appropriate for your use please
** contact the sales department at qt-sales@nokia.com.
** $QT_END_LICENSE$
**
****************************************************************************/
#include “chat.h“
#include
#include
#include “chat_adaptor.h“
#include “chat_interface.h“
ChatMainWindow::ChatMainWindow()
: m_nickname(QLatin1String(“nickname“))
{
setupUi(this);
sendButton->setEnabled(false);
connect(messageLineEdit SIGNAL(textChanged(QString))
this SLOT(textChangedSlot(QString)));
connect(sendButton SIGNAL(clicked(bool)) this SLOT(sendClickedSlot()));
connect(actionchangeNickname SIGNAL(triggered(bool)) this SLOT(changeNickname()));
connect(actionAboutQt SIGNAL(triggered(bool)) this SLOT(aboutQt()));
connect(qApp SIGNAL(lastWindowClosed()) this SLOT(exiting()));
// add our D-Bus interface and connect to D-Bus
new ChatAdaptor(this);
QDBusConnection::sessionBus().registerobject(“/“ this);
com::trolltech::chat *iface;
iface = new com::trolltech::chat(QString() QString() QDBusConnection::sessionBus() this);
//connect(iface SIGNAL(message(QStringQString)) this SLOT(messageSlot(QStringQStr
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 5295 2009-09-24 17:38 聊天\.moc\release-shared\moc_chat.cpp
文件 3563 2009-09-24 17:38 聊天\.moc\release-shared\moc_chat_adaptor.cpp
文件 3189 2009-09-24 17:38 聊天\.moc\release-shared\moc_chat_interface.cpp
文件 397180 2009-09-24 17:38 聊天\.obj\release-shared\chat.o
文件 247708 2009-09-24 17:38 聊天\.obj\release-shared\chat_adaptor.o
文件 261628 2009-09-24 17:38 聊天\.obj\release-shared\chat_interface.o
文件 286028 2009-09-24 17:38 聊天\.obj\release-shared\moc_chat.o
文件 251776 2009-09-24 17:38 聊天\.obj\release-shared\moc_chat_adaptor.o
文件 265672 2009-09-24 17:38 聊天\.obj\release-shared\moc_chat_interface.o
文件 7252 2009-09-24 17:38 聊天\.uic\release-shared\ui_chatmainwindow.h
文件 4453 2009-09-24 17:38 聊天\.uic\release-shared\ui_chatsetnickname.h
文件 5543 2009-09-24 17:38 聊天\chat.cpp
文件 2881 2009-09-24 17:38 聊天\chat.h
文件 4707 2009-09-24 17:38 聊天\chatmainwindow.ui
文件 3382 2009-09-24 17:38 聊天\chatsetnickname.ui
文件 789 2009-09-24 17:38 聊天\chat_adaptor.cpp
文件 1603 2009-09-24 17:38 聊天\chat_adaptor.h
文件 789 2009-09-24 17:38 聊天\chat_interface.cpp
文件 1297 2009-09-24 17:38 聊天\chat_interface.h
文件 505 2009-09-24 17:38 聊天\com.trolltech.chat.xm
文件 59760 2009-09-24 17:38 聊天\dbus-chat
文件 834313 2009-09-24 17:38 聊天\dbus-chat.debug
文件 523 2009-09-24 17:38 聊天\dbus-chat.pro
文件 102687 2009-09-24 17:38 聊天\Makefile
目录 0 2009-09-24 17:41 聊天\.moc\release-shared
目录 0 2009-09-24 17:41 聊天\.obj\release-shared
目录 0 2009-09-24 17:41 聊天\.pch\release-shared
目录 0 2009-09-24 17:41 聊天\.uic\release-shared
目录 0 2009-09-24 17:41 聊天\.moc
目录 0 2009-09-24 17:41 聊天\.obj
............此处省略6个文件信息
- 上一篇:大容量的信息隐藏算法
- 下一篇:电子商务实验和实验报告详细过程
相关资源
- linux C TCP/UDP客户端服务端的相互实时
- Linux下的飞鸽传书源码(ipmsg、聊天、
- 精通LinuxC编程源代码
- linux(debian)服务器配置笔记
- LCD液晶点阵显示中英文例程
- Ajax简易在线聊天室
- Linux课程设计多线程聊天,有图形界面
- 课程设计 linux c 聊天程序公聊 私聊
- 局域网传输文件 聊天工具 飞鸽
- 嵌入式linux之mini2440的hc-sr04超声波驱动
- 用delphi开发的聊天软件,基于Web并结
- CDLINUX硬盘安装文件splash.xpm.gz
- linux iptables 源码
- linux安全加固
- IBM SPSS 25 序列号Windows、macOS、Linux适用
- linux多线程实现矩阵乘法
- Linux基础及应用教程(基于CentOS 7)
- linux实验七 shell编程
- linux实验四_文件目录操作命令
- webcam_v4l2_x264
- 官方jdk1.8.0U201 for Linux 32位和64位
- Linux酒店客房管理系统shell实现
- 基于UDP的局域网聊天系统.doc
- QT串口编程库--qextserialport-1.2win-alpha
- linux操作系统第二版 习题答案
- Haproxy安装脚本
- QT编写的局域网聊天工具仿飞秋
- linux下dhcp安装包
- GB_T 25645-2010 信息技术 中文Linux服务器
- 睡觉的理发师问题Linux下运行
评论
共有 条评论