实例介绍
上次时间仓促,上了一分最原始的代码,所以大家不能直接编译运行,链接在:http://download.csdn.net/detail/shuideyidi/7710733 现在有空,所以把视频模块注释掉了,并且多余的库文件以及中间文件,都删除。 但是其中有一个日历模块,我是独自写成一个linux32为系统底下的动态连接库的,所以无法直接使用的网友(应该是CustomCalendar找不到的错误),去LAN_IM\IMClient\external\CustomCalendar里,自行编译成库,然后将生成的库文件,放在同目录的lib文件夹中,便可以通过编译了。 另外我使用的mysql数据库,在数据库文件下中,放了我导出来的两个数据库(客户端以及服务器端),大家直接导进去,便可以,也可以用文本阅读器打开,复制里的sql语句,再执行。 对于系统的简单介绍见博客:http://blog.csdn.net/shuideyidi/article/details/38260513
【实例截图】
【核心代码】
16359647617595340919.zip
└── LAN_IM
├── IMClient
│ ├── control
│ │ ├── IMClientFileCtrl.cpp
│ │ ├── IMClientFileCtrl.h
│ │ ├── IMClientMessageCtrl.cpp
│ │ ├── IMClientMessageCtrl.h
│ │ ├── IMDatabaseCtrl.cpp
│ │ ├── IMDatabaseCtrl.h
│ │ ├── IMLoginCtrl.cpp
│ │ ├── IMLoginCtrl.h
│ │ ├── IMMailCtrl.cpp
│ │ ├── IMMailCtrl.h
│ │ ├── IMMainCtrl.cpp
│ │ ├── IMMainCtrl.h
│ │ ├── IMRegisterCtrl.cpp
│ │ ├── IMRegisterCtrl.h
│ │ ├── IMVideoCtrl.cpp
│ │ └── IMVideoCtrl.h
│ ├── external
│ │ └── CustomCalendar
│ │ ├── CalendarDialog.cpp
│ │ ├── CalendarDialog.h
│ │ ├── CustomCalendar.cpp
│ │ ├── CustomCalendar.h
│ │ ├── CustomCalendar.pro
│ │ ├── CustomComboBox.cpp
│ │ ├── CustomComboBox.h
│ │ ├── CustomLineEdit.cpp
│ │ ├── CustomLineEdit.h
│ │ ├── include
│ │ │ ├── CalendarDialog.h
│ │ │ ├── CustomCalendar.h
│ │ │ ├── CustomComboBox.h
│ │ │ └── CustomLineEdit.h
│ │ ├── lib
│ │ │ ├── libCustomCalendar.so
│ │ │ ├── libCustomCalendar.so.1
│ │ │ ├── libCustomCalendar.so.1.0
│ │ │ └── libCustomCalendar.so.1.0.0
│ │ ├── Makefile
│ │ ├── moc_CalendarDialog.cpp
│ │ ├── moc_CustomCalendar.cpp
│ │ ├── moc_CustomComboBox.cpp
│ │ └── moc_CustomLineEdit.cpp
│ ├── IMClient
│ ├── IMClient.pro
│ ├── main.cpp
│ ├── Makefile
│ ├── model
│ │ ├── IMConstant.h
│ │ ├── IMEncryption.cpp
│ │ ├── IMEncryption.h
│ │ ├── IMTcpSocket.cpp
│ │ ├── IMTcpSocket.h
│ │ ├── IMUser.cpp
│ │ └── IMUser.h
│ ├── resource
│ │ ├── config
│ │ │ └── auto_login.im
│ │ ├── css
│ │ ├── download
│ │ ├── history
│ │ │ ├── local
│ │ │ └── network
│ │ ├── image
│ │ │ ├── addDiscussion.png
│ │ │ ├── add_file.png
│ │ │ ├── addFlock.png
│ │ │ ├── add_folder.png
│ │ │ ├── addFriend.png
│ │ │ ├── add.png
│ │ │ ├── attach.png
│ │ │ ├── camera.png
│ │ │ ├── cancel.png
│ │ │ ├── clear.png
│ │ │ ├── color.png
│ │ │ ├── colour.png
│ │ │ ├── config.png
│ │ │ ├── deleteAll.png
│ │ │ ├── deleteDate.png
│ │ │ ├── delete_file.png
│ │ │ ├── delete_folder.png
│ │ │ ├── deleteOne.png
│ │ │ ├── discussion.png
│ │ │ ├── download_file.png
│ │ │ ├── download_folder.png
│ │ │ ├── download_message.png
│ │ │ ├── edit_file.png
│ │ │ ├── exportAll.png
│ │ │ ├── exportOne.png
│ │ │ ├── export.png
│ │ │ ├── file.png
│ │ │ ├── flock.png
│ │ │ ├── folder.png
│ │ │ ├── font_bold.png
│ │ │ ├── font_italic.png
│ │ │ ├── font.png
│ │ │ ├── font_underline.png
│ │ │ ├── head
│ │ │ │ ├── 100.bmp
│ │ │ │ ├── 101.bmp
│ │ │ │ ├── 102.bmp
│ │ │ │ ├── 103.bmp
│ │ │ │ ├── 104.bmp
│ │ │ │ ├── 105.bmp
│ │ │ │ ├── 106.bmp
│ │ │ │ ├── 107.bmp
│ │ │ │ ├── 108.bmp
│ │ │ │ ├── 109.bmp
│ │ │ │ ├── 10.bmp
│ │ │ │ ├── 110.bmp
│ │ │ │ ├── 111.bmp
│ │ │ │ ├── 112.bmp
│ │ │ │ ├── 113.bmp
│ │ │ │ ├── 114.bmp
│ │ │ │ ├── 115.bmp
│ │ │ │ ├── 116.bmp
│ │ │ │ ├── 117.bmp
│ │ │ │ ├── 118.bmp
│ │ │ │ ├── 119.bmp
│ │ │ │ ├── 11.bmp
│ │ │ │ ├── 120.bmp
│ │ │ │ ├── 121.bmp
│ │ │ │ ├── 122.bmp
│ │ │ │ ├── 123.bmp
│ │ │ │ ├── 124.bmp
│ │ │ │ ├── 125.bmp
│ │ │ │ ├── 126.bmp
│ │ │ │ ├── 127.bmp
│ │ │ │ ├── 128.bmp
│ │ │ │ ├── 129.bmp
│ │ │ │ ├── 12.bmp
│ │ │ │ ├── 130.bmp
│ │ │ │ ├── 131.bmp
│ │ │ │ ├── 132.bmp
│ │ │ │ ├── 133.bmp
│ │ │ │ ├── 13.bmp
│ │ │ │ ├── 14.bmp
│ │ │ │ ├── 15.bmp
│ │ │ │ ├── 16.bmp
│ │ │ │ ├── 17.bmp
│ │ │ │ ├── 18.bmp
│ │ │ │ ├── 19.bmp
│ │ │ │ ├── 1.bmp
│ │ │ │ ├── 20.bmp
│ │ │ │ ├── 21.bmp
│ │ │ │ ├── 22.bmp
│ │ │ │ ├── 23.bmp
│ │ │ │ ├── 24.bmp
│ │ │ │ ├── 25.bmp
│ │ │ │ ├── 26.bmp
│ │ │ │ ├── 27.bmp
│ │ │ │ ├── 28.bmp
│ │ │ │ ├── 29.bmp
│ │ │ │ ├── 2.bmp
│ │ │ │ ├── 30.bmp
│ │ │ │ ├── 31.bmp
│ │ │ │ ├── 32.bmp
│ │ │ │ ├── 33.bmp
│ │ │ │ ├── 34.bmp
│ │ │ │ ├── 35.bmp
│ │ │ │ ├── 36.bmp
│ │ │ │ ├── 37.bmp
│ │ │ │ ├── 38.bmp
│ │ │ │ ├── 39.bmp
│ │ │ │ ├── 3.bmp
│ │ │ │ ├── 40.bmp
│ │ │ │ ├── 41.bmp
│ │ │ │ ├── 42.bmp
│ │ │ │ ├── 43.bmp
│ │ │ │ ├── 44.bmp
│ │ │ │ ├── 45.bmp
│ │ │ │ ├── 46.bmp
│ │ │ │ ├── 47.bmp
│ │ │ │ ├── 48.bmp
│ │ │ │ ├── 49.bmp
│ │ │ │ ├── 4.bmp
│ │ │ │ ├── 50.bmp
│ │ │ │ ├── 51.bmp
│ │ │ │ ├── 52.bmp
│ │ │ │ ├── 53.bmp
│ │ │ │ ├── 54.bmp
│ │ │ │ ├── 55.bmp
│ │ │ │ ├── 56.bmp
│ │ │ │ ├── 57.bmp
│ │ │ │ ├── 58.bmp
│ │ │ │ ├── 59.bmp
│ │ │ │ ├── 5.bmp
│ │ │ │ ├── 60.bmp
│ │ │ │ ├── 61.bmp
│ │ │ │ ├── 62.bmp
│ │ │ │ ├── 63.bmp
│ │ │ │ ├── 64.bmp
│ │ │ │ ├── 65.bmp
│ │ │ │ ├── 66.bmp
│ │ │ │ ├── 67.bmp
│ │ │ │ ├── 68.bmp
│ │ │ │ ├── 69.bmp
│ │ │ │ ├── 6.bmp
│ │ │ │ ├── 70.bmp
│ │ │ │ ├── 71.bmp
│ │ │ │ ├── 72.bmp
│ │ │ │ ├── 73.bmp
│ │ │ │ ├── 74.bmp
│ │ │ │ ├── 75.bmp
│ │ │ │ ├── 76.bmp
│ │ │ │ ├── 77.bmp
│ │ │ │ ├── 78.bmp
│ │ │ │ ├── 79.bmp
│ │ │ │ ├── 7.bmp
│ │ │ │ ├── 80.bmp
│ │ │ │ ├── 81.bmp
│ │ │ │ ├── 82.bmp
│ │ │ │ ├── 83.bmp
│ │ │ │ ├── 84.bmp
│ │ │ │ ├── 85.bmp
│ │ │ │ ├── 86.bmp
│ │ │ │ ├── 87.bmp
│ │ │ │ ├── 88.bmp
│ │ │ │ ├── 89.bmp
│ │ │ │ ├── 8.bmp
│ │ │ │ ├── 90.bmp
│ │ │ │ ├── 91.bmp
│ │ │ │ ├── 92.bmp
│ │ │ │ ├── 93.bmp
│ │ │ │ ├── 94.bmp
│ │ │ │ ├── 95.bmp
│ │ │ │ ├── 96.bmp
│ │ │ │ ├── 97.bmp
│ │ │ │ ├── 98.bmp
│ │ │ │ ├── 99.bmp
│ │ │ │ └── 9.bmp
│ │ │ ├── history.png
│ │ │ ├── imgRes.qrc
│ │ │ ├── importAll.png
│ │ │ ├── import.png
│ │ │ ├── mail.png
│ │ │ ├── mailRead.png
│ │ │ ├── mailUnRead.png
│ │ │ ├── messageBox.png
│ │ │ ├── message.png
│ │ │ ├── microphone.png
│ │ │ ├── newMessage.png
│ │ │ ├── noMessage.png
│ │ │ ├── no.png
│ │ │ ├── picture.png
│ │ │ ├── plane.png
│ │ │ ├── replay_calendar_left_arrow_btn.png
│ │ │ ├── replay_calendar_right_arrow_btn.png
│ │ │ ├── searchAdd.png
│ │ │ ├── search.png
│ │ │ ├── send_file.png
│ │ │ ├── space.png
│ │ │ └── upload_folder.png
│ │ ├── other
│ │ └── tmp
│ └── view
│ ├── IMChatWidget.cpp
│ ├── IMChatWidget.h
│ ├── IMClickLabel.cpp
│ ├── IMClickLabel.h
│ ├── IMDiscussionButton.cpp
│ ├── IMDiscussionButton.h
│ ├── IMDiscussionChatWidget.cpp
│ ├── IMDiscussionChatWidget.h
│ ├── IMDiscussionInformationWidget.cpp
│ ├── IMDiscussionInformationWidget.h
│ ├── IMDiscussionListWidget.cpp
│ ├── IMDiscussionListWidget.h
│ ├── IMDiscussionMemberButton.cpp
│ ├── IMDiscussionMemberButton.h
│ ├── IMDiscussionMemberListWidget.cpp
│ ├── IMDiscussionMemberListWidget.h
│ ├── IMFileReceiverWidget.cpp
│ ├── IMFileReceiverWidget.h
│ ├── IMFileSenderWidget.cpp
│ ├── IMFileSenderWidget.h
│ ├── IMFlockButton.cpp
│ ├── IMFlockButton.h
│ ├── IMFlockChatWidget.cpp
│ ├── IMFlockChatWidget.h
│ ├── IMFlockInformationWidget.cpp
│ ├── IMFlockInformationWidget.h
│ ├── IMFlockListWidget.cpp
│ ├── IMFlockListWidget.h
│ ├── IMFlockMemberButton.cpp
│ ├── IMFlockMemberButton.h
│ ├── IMFlockMemberListWidget.cpp
│ ├── IMFlockMemberListWidget.h
│ ├── IMForgotPwdWidget.cpp
│ ├── IMForgotPwdWidget.h
│ ├── IMFriendButton.cpp
│ ├── IMFriendButton.h
│ ├── IMFriendListWidget.cpp
│ ├── IMFriendListWidget.h
│ ├── IMInformationWidget.cpp
│ ├── IMInformationWidget.h
│ ├── IMInputTextEdit.cpp
│ ├── IMInputTextEdit.h
│ ├── IMLatestMessageListWidget.cpp
│ ├── IMLatestMessageListWidget.h
│ ├── IMLinkButton.cpp
│ ├── IMLinkButton.h
│ ├── IMLinkDiscussionButton.cpp
│ ├── IMLinkDiscussionButton.h
│ ├── IMLinkFlockButton.cpp
│ ├── IMLinkFlockButton.h
│ ├── IMLinkFriendButton.cpp
│ ├── IMLinkFriendButton.h
│ ├── IMLittleWidget.cpp
│ ├── IMLittleWidget.h
│ ├── IMLocalMessageWidget.cpp
│ ├── IMLocalMessageWidget.h
│ ├── IMLoginWidget.cpp
│ ├── IMLoginWidget.h
│ ├── IMMailButton.cpp
│ ├── IMMailButton.h
│ ├── IMMailInformationWidget.cpp
│ ├── IMMailInformationWidget.h
│ ├── IMMailInWidget.cpp
│ ├── IMMailInWidget.h
│ ├── IMMailListWidget.cpp
│ ├── IMMailListWidget.h
│ ├── IMMailOutWidget.cpp
│ ├── IMMailOutWidget.h
│ ├── IMMailWidget.cpp
│ ├── IMMailWidget.h
│ ├── IMMailWriteWidget.cpp
│ ├── IMMailWriteWidget.h
│ ├── IMMainWidget.cpp
│ ├── IMMainWidget.h
│ ├── IMMessageManageWidget.cpp
│ ├── IMMessageManageWidget.h
│ ├── IMMessageWidget.cpp
│ ├── IMMessageWidget.h
│ ├── IMNetWorkMessageWidget.cpp
│ ├── IMNetWorkMessageWidget.h
│ ├── IMRegisterWidget.cpp
│ ├── IMRegisterWidget.h
│ ├── IMSearchListWidget.cpp
│ ├── IMSearchListWidget.h
│ ├── IMToolBox.cpp
│ └── IMToolBox.h
├── IMServer
│ ├── control
│ │ ├── IMClientSocketCtrl.cpp
│ │ ├── IMClientSocketCtrl.h
│ │ ├── IMDatabaseCtrl.cpp
│ │ ├── IMDatabaseCtrl.h
│ │ ├── IMServerMessageCtrl.cpp
│ │ └── IMServerMessageCtrl.h
│ ├── IMServer
│ ├── IMServer.pro
│ ├── main.cpp
│ ├── Makefile
│ ├── model
│ │ ├── IMConstant.h
│ │ ├── IMEncryption.h
│ │ ├── IMTcpServer.cpp
│ │ ├── IMTcpServer.h
│ │ ├── IMThread.cpp
│ │ ├── IMThread.h
│ │ ├── IMUser.cpp
│ │ └── IMUser.h
│ ├── resource
│ │ ├── config
│ │ ├── css
│ │ ├── download
│ │ ├── image
│ │ ├── other
│ │ └── tmp
│ └── view
│ ├── IMServerWindow.cpp
│ └── IMServerWindow.h
└── 数据库文件
├── client.sql
└── server.sql
32 directories, 346 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论