int main(int argc, char *argv[]) { #if defined(Q_OS_WIN32) || defined(Q_OS_LINUX) || defined(Q_OS_DARWIN) MyQApplication app(argc, argv); #else QApplication app(argc, argv); #endif MainWindow window; /* Set license information before creating the first client instance */ TT_SetLicenseInformation(_W(QString(REGISTRATION_NAME)), _W(QString(REGISTRATION_KEY))); #if defined(Q_OS_WIN32) && USE_POLL == 0 HWND hWnd = reinterpret_cast<HWND>(window.winId()); app.m_mainwindow = &window; ttInst = TT_InitTeamTalk(hWnd, WM_TEAMALK_CLIENTEVENT); #elif defined(Q_OS_LINUX) || defined(Q_OS_DARWIN) app.m_mainwindow = &window; ttInst = TT_InitTeamTalkPoll(); #else ttInst = TT_InitTeamTalkPoll(); #endif window.loadSettings(); //load settings now that we have ttInst window.show(); int ret = app.exec(); TT_CloseTeamTalk(ttInst); return ret; }
Controller::Controller():_mainInstance(NULL) { TT_SetLicenseInformation(L"Bnei Baruch", 1600664704); }