資源簡介
一、源碼描述
GG2014是QQ的高仿版,包括客戶端和服務端,可在廣域網部署使用。我的目標并不
是做一個QQ高仿版的玩具,而是希望做成一個能夠真正使用的產品(這個過程還有
很長的路要走),并持續維護下去。小編親自測試完美運行,強烈推薦一下,感興趣
的朋友們千萬不要錯過啊。
二、功能介紹
GG2014 已經實現了如下功能:
(01)注冊、登錄、添加好友、好友列表。
(02)自拍頭像。
(03)文字聊天、字體設置、GIF動態表情、窗口震動、截圖、手寫板、登錄狀態
(在線、離開、忙碌、勿打擾、隱身)、輸入提醒
(04)群功能:創建群、加入群、退出群、群聊天
(05)文件傳送、文件夾傳送(支持斷點續傳)
(06)語音視頻聊天
(07)遠程磁盤
(08)遠程協助
(09)共享桌面(可以指定要共享的桌面區域)
(10)可靠的P2P
(11)網盤
(12)離線消息
(13)離線文件
(14)語音消息、語音留言
(15)最近聯系人列表
(16)系統設置:開機自動啟動、麥克風設備索引、攝像頭設備索引,叉掉主窗口時
關閉程序還是隱藏窗口。
(17)聊天記錄:支持本地保存和服務器端保存兩種方式。
(18)好友分組:新增/刪除分組,修改分組名稱,改變好友的所屬分組。
(19)托盤閃動:跟QQ完全一樣,當接收到消息時,托盤會閃動對應好友的頭像。點
擊頭像,將彈出與好友的聊天框。
(20)輸入提醒:像QQ一樣,當對方正在輸入消息時,我這邊的聊天框可以看到對方
“正在輸入”的提示。
(21)自動記錄:GG2014會自動記錄上次打開的主界面的位置、大小;最后一次打開
的聊天窗口的大小;最后一次
設定的字體的顏色、大小等。
(22)打開聊天窗口時,自動顯示上次交談的最后一句話。
三、注意事項
1、開發環境為Visual Studio 2010,無數據庫,使用.net 2.0開發。
2、該源碼僅供學習交流使用。
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Text;
using?System.Drawing;
using?System.Windows.Forms;
using?CCWin.SkinControl;
using?System.Configuration;
using?ESBasic.Loggers;
using?System.IO;
using?ESBasic;
using?ESBasic.Helpers;
using?JustLib.Records;
using?JustLib;
namespace?GG2014
{
????internal?class?GlobalResourceManager
????{
????????public?static?void?Initialize()
????????{
????????????try
????????????{
????????????????#region?Log
????????????????string?logFilePath?=?SystemSettings.SystemSettingsDir?+?“AppLog.txt“;
????????????????GlobalResourceManager.logger?=?new?FileAgileLogger(logFilePath);
????????????????#endregion
????????????????GlobalResourceManager.softwareName?=?ConfigurationManager.AppSettings[“softwareName“];
????????????????string?resourceDir?=?AppDomain.CurrentDomain.baseDirectory?+?“Resource\\“;
????????????????GlobalResourceManager.noneIcon64?=?global::GG2014.Properties.Resources.None64;
????????????????GlobalResourceManager.groupIcon?=?ImageHelper.ConvertToIcon(global::GG2014.Properties.Resources.normal_group_40?64);
????????????????#region?HeadImage
????????????????List?list?=?ESBasic.Helpers.FileHelper.GetOffspringFiles(AppDomain.CurrentDomain.baseDirectory?+?“Head\\“);
????????????????List?picList?=?new?List();
????????????????foreach?(string?file?in?list)
????????????????{
????????????????????string?name?=?file.ToLower();
????????????????????if?(name.EndsWith(“.bmp“)?||?name.EndsWith(“.jpg“)?||?name.EndsWith(“.jpeg“)?||?name.EndsWith(“.png“))
????????????????????{
????????????????????????picList.Add(name);
????????????????????}
????????????????}
????????????????picList.Sort();
????????????????GlobalResourceManager.headImages?=?new?Image[picList.Count];
????????????????for?(int?i?=?0;?i?????????????????{
????????????????????GlobalResourceManager.headImages[i]?=?Image.FromFile(AppDomain.CurrentDomain.baseDirectory?+?“head\\“?+?list[i]);
????????????????}
????????????????GlobalResourceManager.headImagesGrey?=?new?Image[picList.Count];
????????????????for?(int?i?=?0;?i?????????????????{
????????????????????GlobalResourceManager.headImagesGrey[i]?=?ESBasic.Helpers.ImageHelper.ConvertToGrey(GlobalResourceManager.headImages[i]);
????????????????}
????????????????#endregion
????????????????#region?Emotion
????????????????List?tempList?=?ESBasic.Helpers.FileHelper.GetOffspringFiles(AppDomain.CurrentDomain.baseDirectory?+?“Emotion\\“);
????????????????List?emotionFileList?=?new?List();
????????????????foreach?(string?file?in?tempList)
????????????????{
????????????????????string?name?=?file.ToLower();
????????????????????if?(name.EndsWith(“.bmp“)?||?name.EndsWith(“.jpg“)?||?name.EndsWith(“.jpeg“)?||?name.EndsWith(“.png“)?||?name.EndsWith(“.gif“))
????????????????????{
????????????????????????emotionFileList.Add(name);
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????16958??2014-08-26?09:16??app.ico
?????目錄???????????0??2014-11-06?10:50??Dlls\
?????文件???????89088??2014-10-17?16:21??Dlls\AudioEngineCore.dll
?????文件?????1036288??2014-10-22?20:17??Dlls\CSkin.dll
?????文件??????169472??2014-09-07?21:41??Dlls\DataRabbit.dll
?????文件??????118784??2011-03-18?10:59??Dlls\dxba
?????文件??????395264??2014-10-28?11:13??Dlls\ESBasic.dll
?????文件??????199352??2014-10-28?11:13??Dlls\ESBasic.xm
?????文件?????1033728??2014-11-05?15:27??Dlls\ESfr
?????文件??????329425??2014-11-05?15:24??Dlls\ESfr
?????文件??????390656??2014-11-05?14:56??Dlls\JustLib.dll
?????文件???????24784??2014-11-04?11:38??Dlls\JustLib.xm
?????文件?????1656320??2014-11-04?14:51??Dlls\OMCS.dll
?????文件??????672537??2014-10-31?16:44??Dlls\OMCS.xm
?????文件??????467456??2014-10-28?11:11??Dlls\Paintfr
?????文件???????36119??2014-10-17?16:49??Dlls\Paintfr
?????文件?????2380800??2014-07-14?15:31??Dlls\SQLite.Interop.dll
?????文件??????282624??2014-06-23?09:56??Dlls\System.Data.SQLite.dll
?????文件??????663552??2014-10-18?12:45??Dlls\VideoEngineCore.dll
?????文件????????4945??2007-07-18?09:38??from.gif
?????目錄???????????0??2014-11-07?09:19??GG2014\
?????目錄???????????0??2014-11-07?09:19??GG2014.Core\
?????目錄???????????0??2014-10-24?10:07??GG2014.Core\bin\
?????目錄???????????0??2014-11-06?10:49??GG2014.Core\bin\Debug\
?????文件?????1036288??2014-10-22?20:17??GG2014.Core\bin\Debug\CSkin.dll
?????文件??????169472??2014-09-07?21:41??GG2014.Core\bin\Debug\DataRabbit.dll
?????文件??????395264??2014-10-28?11:13??GG2014.Core\bin\Debug\ESBasic.dll
?????文件??????199352??2014-10-28?11:13??GG2014.Core\bin\Debug\ESBasic.xm
?????文件?????1033728??2014-11-05?15:27??GG2014.Core\bin\Debug\ESfr
?????文件??????329425??2014-11-05?15:24??GG2014.Core\bin\Debug\ESfr
?????文件???????29696??2014-11-07?09:20??GG2014.Core\bin\Debug\GG2014.Core.dll
............此處省略648個文件信息
評論
共有 條評論