资源简介
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个文件信息
- 上一篇:大容量的信息隐藏算法
- 下一篇:电子商务实验和实验报告详细过程
相关资源
- uboot到linux logo显示不间断 补丁
- UNIX/LINUX编程实践教程的源码
- Linux任务管理器
- linux应用层的华容道游戏源代码
- 通信软件的具体实例──基于Socket的
- 用VC 编写的仿QQ聊天室程序源代码
- Qt局域网聊天软件
- websocket实现一对一聊天
- ubuntu9.10 可加载内核模块和字符设备驱
- QT局域网聊天系统(基于QT5.修改过)
- MP3文件ID3v2ID3v2APEv2标签读取
- 操作系统实验——虚存管理实验
- linux下的发包工具sendip
- 尚观培训linux许巍关于c 的笔记和讲义
- 尚观培训linux董亮老师关于数据结构的
- linux 线程池源码 c 版
- linux C 电梯程序练习
- linux下用多进程同步方法解决生产者
- 基于swing的简单聊天器(兼传输文件)
- Linux 操作系统实验(全)
- Linux From Scratch 中文手册
- linux 网络实验 ftp程序
- Linux命令大全离线版&在线版
- 操作系统共享内存实验
- dos 下运行Linux 命令--gnu_utils
- linux 0.12内核源代码
- linux简易shell C实现
- linux实验报告及心得体会
- 飞秋FeiQ 兼容qq和飞鸽传书功能
- 基于GTK的Linux环境下的简易任务管理器
评论
共有 条评论