代码拉取完成,页面将自动刷新
同步操作将从 onlycoder/openmeeting2 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#include "eventcenter.h"
#include <QtGui/QApplication>
#include <QTextCodec>
#include <QFile>
#include "login/UserLoginWdg.h"
#include "../stdafx.h"
#include <iostream>
#include <QMessageBox>
#include <QTranslator>
#include <Windows.h>
#include <process.h>
#include "CrashRpt.h" // Include CrashRpt header
LPVOID lpvState = NULL; // Not used, deprecated
int main(int argc, char *argv[])
{
CR_INSTALL_INFO info;
memset(&info, 0, sizeof(CR_INSTALL_INFO));
info.cb = sizeof(CR_INSTALL_INFO);
info.pszAppName = L"open meeting2";
info.pszAppVersion = L"16";
info.pszUrl = L"http://www.onlycoder.net/meeting/index.php/Home/Index/uploadCrash";
int nInstResult = crInstall(&info);
if(nInstResult!=0)
{
TCHAR buff[256];
crGetLastErrorMsg(buff, 256); // Get last error
//_tprintf(_T("%s\n"), buff); // and output it to the screen
return FALSE;
}
crAddScreenshot2(CR_AS_MAIN_WINDOW|CR_AS_USE_JPEG_FORMAT, 95);
QApplication a(argc, argv);
QTextCodec::setCodecForCStrings(QTextCodec::codecForLocale());
QTextCodec::setCodecForLocale(QTextCodec::codecForLocale());
QTextCodec::setCodecForTr(QTextCodec::codecForLocale());
QTranslator translator;
translator.load(":/qt_zh_CN.qm");
a.installTranslator(&translator);
QFile qssFile(":/qss/style");
QString qss;
qssFile.open(QFile::ReadOnly);
if(qssFile.isOpen())
{
qss = QString(qssFile.readAll());
qApp->setStyleSheet(qss);
qssFile.close();
}
if (argc == 1)
{
UserLoginWdg::GetInstance()->initGodsAnyThingBySean();
EventCenter w;
return a.exec();
}
else{
EventCenter w;
if(strlen(argv[1])<24)
{
QMessageBox message(QMessageBox::NoIcon, "提示","参数太短");
return message.exec();
}
QString strUrl = QString(argv[1]+11);
QByteArray ba = QByteArray::fromBase64(QByteArray(strUrl.toUtf8()));//base64解码 解密
QString qStr = QString::fromUtf8(ba);
QString tipStr;
QStringList list;
list = qStr.split("&");
if (list.count() != 6)
{
tipStr = QString("数据格式有误:%1").arg(argv[1]);
QMessageBox message(QMessageBox::NoIcon, "提示",tipStr);
return message.exec();
}
UserLoginWdg::GetInstance()->logType = qStr.section('&',1,1);//类型区分 账号 会议号登录
UserLoginWdg::GetInstance()->roomNum = qStr.section('&',2,2);//房间号
UserLoginWdg::GetInstance()->userId = qStr.section('&',3,3);// 用户ID 或 用户名
UserLoginWdg::GetInstance()->passWord = qStr.section('&',4,4);// 密码
UserLoginWdg::GetInstance()->isWeb = true;
UserLoginWdg::GetInstance()->initGodsAnyThingBySean();
a.exec();
int nUninstRes = crUninstall();
return nUninstRes;
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。