-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Language translation #6
Comments
Hi, If you want to translate outcall2 to portuguese download this .ts file: Then follow these instructions The HOWTO describes how to translate gloCOM but the same applies to OutCALL2. Thanks for translating. |
Hi,
I think I'll finish until the 22nd.
Thank you for the opportunity.
De: Mirza Dedic [mailto:[email protected]]
Enviada em: segunda-feira, 20 de fevereiro de 2017 06:34
Para: bicomsystems/outcall2 <[email protected]>
Cc: rxsantos <[email protected]>; Author <[email protected]>
Assunto: Re: [bicomsystems/outcall2] Language translation (#6)
Hi,
If you want to translate outcall2 to portuguese download this .ts file:
https://github.com/bicomsystems/outcall2/tree/master/translations
Then follow these instructions
https://wiki.bicomsystems.com/HOWTO_gloCOM_translation
The HOWTO describes how to translate gloCOM but the same applies to OutCALL2.
Thanks for translating.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#6 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AHGbHMi8hl5ieZT4hd0MqzwpigGimZkFks5reV4YgaJpZM4MFvgd> . <https://github.com/notifications/beacon/AHGbHG3aQD410QOxWYhiwKO4GD0PLxGWks5reV4YgaJpZM4MFvgd.gif>
|
Mirza,
I finished the translation, but when I load the language file, the program returns an error stating that the language file failed to load. I used accentuation in the words, is that it?
Follow translated language files, exported from Qtlinguist.
Att,
Roberto Xavier
Proxy Telecom Ltda
05541 992198711 / 30827457
<http://www.proxytelecom.com.br/> www.proxytelecom.com.br
De: Roberto Xavier [mailto:[email protected]]
Enviada em: segunda-feira, 20 de fevereiro de 2017 11:37
Para: 'bicomsystems/outcall2' <[email protected]>; 'bicomsystems/outcall2' <[email protected]>
Cc: 'Author' <[email protected]>
Assunto: RES: [bicomsystems/outcall2] Language translation (#6)
Hi,
I think I'll finish until the 22nd.
Thank you for the opportunity.
De: Mirza Dedic [mailto:[email protected]]
Enviada em: segunda-feira, 20 de fevereiro de 2017 06:34
Para: bicomsystems/outcall2 <[email protected] <mailto:[email protected]> >
Cc: rxsantos <[email protected] <mailto:[email protected]> >; Author <[email protected] <mailto:[email protected]> >
Assunto: Re: [bicomsystems/outcall2] Language translation (#6)
Hi,
If you want to translate outcall2 to portuguese download this .ts file:
https://github.com/bicomsystems/outcall2/tree/master/translations
Then follow these instructions
https://wiki.bicomsystems.com/HOWTO_gloCOM_translation
The HOWTO describes how to translate gloCOM but the same applies to OutCALL2.
Thanks for translating.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#6 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AHGbHMi8hl5ieZT4hd0MqzwpigGimZkFks5reV4YgaJpZM4MFvgd> . <https://github.com/notifications/beacon/AHGbHG3aQD410QOxWYhiwKO4GD0PLxGWks5reV4YgaJpZM4MFvgd.gif>
|
Run application as administrator, then load the .lang file. |
Hi Mirza, how are you?
I had tried as administrator and it still did not work, but I found the problem.
The problem was in the way I had exported the QTlinguist file, instead of selecting "Release as", I had selected "Save as", but the translation worked in 99% of the program, as you can see in the attached images.
In QTLinguist I translated all the items and today I took the opportunity to make some revisions.
I translated the OutCALL.cpp file however did not compile with the QT 5. Could you check if I kept the variables correctly?
Would you have any suggestions for me to translate the parts that are missing?
Thanks,
Roberto Xavier
Proxy Telecom Ltda
05541 992198711
<http://www.proxytelecom.com.br/> www.proxytelecom.com.br
De: Mirza Dedic [mailto:[email protected]]
Enviada em: terça-feira, 21 de fevereiro de 2017 04:34
Para: bicomsystems/outcall2 <[email protected]>
Cc: rxsantos <[email protected]>; Author <[email protected]>
Assunto: Re: [bicomsystems/outcall2] Language translation (#6)
Run application as administrator, then load the .lang file.
After that restart the application.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#6 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AHGbHMSN5tgoMJjnZHQuit-BGZe9lX4Qks5repNqgaJpZM4MFvgd> . <https://github.com/notifications/beacon/AHGbHBuWLprLOBMPU4sYuCOub34GlKe4ks5repNqgaJpZM4MFvgd.gif>
#include "OutCALL.h"
#include "DebugInfoDialog.h"
#include "SettingsDialog.h"
#include "AboutDialog.h"
#include "CallHistoryDialog.h"
#include "Global.h"
#include "ContactManager.h"
#include "PlaceCallDialog.h"
#include "AsteriskManager.h"
#include "Notifier.h"
#include "PopupWindow.h"
#include <QMenu>
#include <QDebug>
#include <QTcpSocket>
#include <QApplication>
#include <QDesktopServices>
#include <QUrl>
#include <QVariantList>
#include <QVariantMap>
#include <QMessageBox>
OutCall::OutCall() :
QWidget()
{
m_systemTryIcon = new QSystemTrayIcon(this);
m_menu = new QMenu(this);
m_settingsDialog = new SettingsDialog;
m_aboutDialog = new AboutDialog;
m_debugInfoDialog = new DebugInfoDialog;
m_callHistoryDialog = new CallHistoryDialog;
m_placeCallDialog = new PlaceCallDialog;
connect(m_systemTryIcon, &QSystemTrayIcon::activated, this, &OutCall::onActivated);
connect(g_pContactManager, &ContactManager::syncing, this, &OutCall::onSyncing);
connect(g_pAsteriskManager, &AsteriskManager::messageReceived, this, &OutCall::onMessageReceived);
connect(g_pAsteriskManager, &AsteriskManager::callDeteceted, this, &OutCall::onCallDeteceted);
connect(g_pAsteriskManager, &AsteriskManager::callReceived, this, &OutCall::onCallReceived);
connect(g_pAsteriskManager, &AsteriskManager::error, this, &OutCall::displayError);
connect(g_pAsteriskManager, &AsteriskManager::stateChanged, this, &OutCall::onStateChanged);
connect(&m_timer, &QTimer::timeout, this, &OutCall::changeIcon);
global::setSettingsValue("InstallDir", g_AppDirPath.replace("/", "\\"));
createContextMenu();
m_systemTryIcon->setContextMenu(m_menu);
QString path(":/images/disconnected.png");
m_systemTryIcon->setIcon(QIcon(path));
automaticlySignIn();
}
OutCall::~OutCall()
{
delete m_settingsDialog;
delete m_debugInfoDialog;
delete m_aboutDialog;
delete m_callHistoryDialog;
delete m_placeCallDialog;
}
void OutCall::createContextMenu()
{
// Exit action
QAction* exitAction = new QAction(tr("Sair"), m_menu);
connect(exitAction, &QAction::triggered, this, &OutCall::close);
// Sign In
m_signIn = new QAction(tr("Logar"), m_menu);
connect(m_signIn, &QAction::triggered, this, &OutCall::signInOut);
// Add Contacts
QAction* addContactAction = new QAction(tr("Adicionar Contato"), m_menu);
connect(addContactAction, &QAction::triggered, this, &OutCall::onAddContact);
// SettingsDialog
QAction* settingsAction = new QAction(tr("Configurações"), m_menu);
connect(settingsAction, &QAction::triggered, this, &OutCall::onSettingsDialog);
QAction* debugInfoAction = new QAction(tr("Depuração"), m_menu);
connect(debugInfoAction, &QAction::triggered, this, &OutCall::onDebugInfo);
// About
QAction* aboutAction = new QAction(tr("Sobre"), m_menu);
connect(aboutAction, &QAction::triggered, this, &OutCall::onAboutDialog);
// Help
QMenu *helpMenu = new QMenu(tr("Ajuda"), m_menu);
m_menu->addMenu(helpMenu);
QAction* onlineHelp = new QAction(tr("Online HTML"), helpMenu);
connect(onlineHelp, &QAction::triggered, this, &OutCall::onOnlineHelp);
QAction* onlinePdf = new QAction(tr("Online PDF"), helpMenu);
connect(onlinePdf, &QAction::triggered, this, &OutCall::onOnlinePdf);
// Call History
QAction* callHistoryAction = new QAction(tr("Histórico Chamadas"), m_menu);
connect(callHistoryAction, &QAction::triggered, this, &OutCall::onCallHistory);
// Import Contacts
QMenu *importContactsMenu = new QMenu(tr("Sincronizar Contatos"), m_menu);
QAction* importOutlookAction = new QAction(tr("Do Outlook"), importContactsMenu);
connect(importOutlookAction, &QAction::triggered, this, &OutCall::onSyncOutlook);
// Place a Call
m_placeCall = new QAction(tr("Fazer Ligação"), 0);
QFont font = m_placeCall->font();
font.setBold(true);
m_placeCall->setFont(font);
connect(m_placeCall, &QAction::triggered, this, &OutCall::onPlaceCall);
helpMenu->addAction(onlineHelp);
helpMenu->addAction(onlinePdf);
// Add actions
m_menu->addAction(aboutAction);
m_menu->addSeparator();
m_menu->addAction(settingsAction);
m_menu->addAction(debugInfoAction);
m_menu->addSeparator();
m_menu->addAction(m_placeCall);
m_menu->addAction(callHistoryAction);
m_menu->addMenu(importContactsMenu);
importContactsMenu->addAction(importOutlookAction);
m_menu->addSeparator();
m_menu->addAction(m_signIn);
m_menu->addAction(addContactAction);
m_menu->addSeparator();
m_menu->addAction(exitAction);
}
void OutCall::automaticlySignIn()
{
bool autoSingIn = global::getSettingsValue("auto_sign_in", "general").toBool();
if(autoSingIn)
signInOut();
}
void OutCall::signInOut()
{
if (m_signIn->text() == "Cancel Sign In")
{
g_pAsteriskManager->signOut();
return;
}
if (g_pAsteriskManager->isSignedIn() == false)
{
QString server = global::getSettingsValue("servername", "settings").toString();
QString port = global::getSettingsValue("port", "settings", "5038").toString();
g_pAsteriskManager->signIn(server, port.toUInt());
}
else
{
g_pAsteriskManager->signOut();
}
}
void OutCall::onSyncOutlook()
{
g_pContactManager->refreshContacts();
}
void OutCall::displayError(QAbstractSocket::SocketError socketError, const QString &msg)
{
switch (socketError)
{
case QAbstractSocket::RemoteHostClosedError:
MsgBoxInformation(tr("O host remoto fechou a conexão."));
break;
case QAbstractSocket::HostNotFoundError:
MsgBoxInformation(tr("O host não foi encontrado. Por favor, verifique o "
"nome do host e configurações de porta."));
break;
case QAbstractSocket::ConnectionRefusedError:
MsgBoxInformation(tr("A conexão foi recusada pelo par. "
"Certifique se o servidor está em execução, "
"e verifique se o nome do host e porta "
"estão com as configurações corretas."));
break;
default:
MsgBoxInformation(msg);
}
}
void OutCall::onSyncing(bool status)
{
if (status)
{
foreach(QAction *action, m_menu->actions())
{
if (action->text() == tr("Sincronizar Contatos"))
{
m_systemTryIcon->setToolTip(tr("Sincronizando contatos"));
action->setText(tr("Sincronizando ..."));
action->setDisabled(true);
}
}
}
else
{
foreach(QAction *action, m_menu->actions())
{
if (action->text() == tr("Sincronizando ..."))
{
if (g_pAsteriskManager->isSignedIn())
m_systemTryIcon->setToolTip(tr(APP_NAME) + tr(" - ") + tr("Logou"));
else
m_systemTryIcon->setToolTip(tr(APP_NAME) + tr(" - ") + tr("Não Logou"));
action->setText(tr("Sincronizar Contatos"));
action->setEnabled(true);
}
}
}
}
void OutCall::onAddContact()
{
g_pContactManager->addOutlookContact();
}
void OutCall::onMessageReceived(const QString &message)
{
if (m_debugInfoDialog)
m_debugInfoDialog->updateDebug(message);
}
void OutCall::onCallDeteceted(const QMap<QString, QVariant> &call, AsteriskManager::CallState state)
{
m_callHistoryDialog->addCall(call, (CallHistoryDialog::Calls)state);
}
void OutCall::onCallReceived(const QMap<QString, QVariant> &call)
{
QString from = call.value("from").toString();
QString callerName = call.value("callerIDName").toString();
bool isMinCallerID = global::getSettingsValue("min_caller_state", "general").toBool();
bool contactOnInboud = global::getSettingsValue("contact_inbound", "outlook").toBool();
bool contactOnUnknown = global::getSettingsValue("contact_unknown", "outlook").toBool();
bool isCallerIDUnknown = true;
int callerLength = from.size();
QList<Contact*> contactList = g_pContactManager->getContacts();
QString outlookContactName;
for(int i = 0; i < contactList.size(); ++i)
{
Contact *contact = contactList[i];
QList<QString> numbers = contact->numbers.values();
if (numbers.contains(from))
{
outlookContactName = contact->name;
isCallerIDUnknown = false;
break;
}
}
if (callerName.isEmpty() || callerName == "<unknown>" || !outlookContactName.isEmpty())
{
callerName = outlookContactName;
}
if (isMinCallerID)
{
int length = global::getSettingsValue("min_caller_id", "general").toInt();
if (callerLength >= length)
{
if (callerName.isEmpty() || callerName == "<unknown>")
{
PopupWindow::showCallNotification(QString("(Nr: %2)").arg(from));
}
else
{
PopupWindow::showCallNotification(QString("%1 (Nr: %2)").arg(callerName).arg(from));
}
}
}
else
{
if (callerName.isEmpty() || callerName == "<unknown>")
{
PopupWindow::showCallNotification(QString("(Nr: %2)").arg(from));
}
else
{
PopupWindow::showCallNotification(QString("%1 (Nr: %2)").arg(callerName).arg(from));
}
}
if (contactOnInboud && !isCallerIDUnknown)
{
g_pContactManager->viewOutlookContact(callerName, "");
}
else if (isCallerIDUnknown && contactOnUnknown)
{
g_pContactManager->addOutlookContact(from, callerName);
}
}
void OutCall::onStateChanged(AsteriskManager::AsteriskState state)
{
if (state == AsteriskManager::CONNECTED)
{
QString path(":/images/connected.png");
m_systemTryIcon->setIcon(QIcon(path));
m_signIn->setText(tr("Sair"));
PopupWindow::showInformationMessage(tr(APP_NAME), tr("Logado"));
m_systemTryIcon->setToolTip(tr(APP_NAME) + tr(" - ") + tr("Logou"));
m_placeCall->setEnabled(true);
m_timer.stop();
}
else if (state == AsteriskManager::CONNECTING)
{
m_signIn->setText(tr("Cancel Sign In"));
m_systemTryIcon->setToolTip(tr(APP_NAME) + tr(" - ") + tr("Logando"));
m_placeCall->setEnabled(false);
m_timer.start(500);
}
else if (state == AsteriskManager::DISCONNECTED)
{
QString path(":/images/disconnected.png");
m_systemTryIcon->setIcon(QIcon(path));
m_signIn->setText(tr("&Login"));
m_systemTryIcon->setToolTip(tr(APP_NAME) + tr(" - ") + tr("Não Logou"));
m_placeCall->setEnabled(false);
m_timer.stop();
}
else if (state == AsteriskManager::AUTHENTICATION_FAILED)
{
QString path(":/images/started.png");
m_systemTryIcon->setIcon(QIcon(path));
PopupWindow::showInformationMessage(tr(APP_NAME), tr("Falha de Autenticação"));
m_systemTryIcon->setToolTip(tr(APP_NAME) + tr(" - ") + tr("Não configurado"));
m_signIn->setText(tr("&Login"));
m_placeCall->setEnabled(false);
m_timer.stop();
}
}
void OutCall::changeIcon()
{
if (m_switch)
{
QString path(":/images/connected.png");
m_systemTryIcon->setIcon(QIcon(path));
m_switch = false;
}
else
{
QString path(":/images/disconnected.png");
m_systemTryIcon->setIcon(QIcon(path));
m_switch = true;
}
}
void OutCall::onOnlineHelp()
{
QString link = "http://www.bicomsystems.com/docs/outcall/1.0/html/";
QDesktopServices::openUrl(QUrl(link));
}
void OutCall::onOnlinePdf()
{
QString link = "http://www.bicomsystems.com/docs/outcall/1.0/pdf/outcall.pdf";
QDesktopServices::openUrl(QUrl(link));
}
void OutCall::onCallHistory()
{
m_callHistoryDialog->show();
m_callHistoryDialog->raise();
}
void OutCall::onSettingsDialog()
{
SettingsDialog dialog;
dialog.exec();
}
void OutCall::onAboutDialog()
{
m_aboutDialog->show();
m_aboutDialog->raise();
}
void OutCall::onDebugInfo()
{
m_debugInfoDialog->show();
m_debugInfoDialog->raise();
}
void OutCall::onPlaceCall()
{
m_placeCallDialog->show();
m_placeCallDialog->raise();
}
void OutCall::close()
{
g_pAsteriskManager->signOut();
QApplication::quit();
}
void OutCall::onActivated(QSystemTrayIcon::ActivationReason reason)
{
if (reason == QSystemTrayIcon::Trigger)
{
m_debugInfoDialog->activateWindow();
m_aboutDialog->activateWindow();
m_settingsDialog->activateWindow();
m_callHistoryDialog->activateWindow();
g_pContactManager->activateDialog();
m_placeCallDialog->activateWindow();
}
else if (reason == QSystemTrayIcon::DoubleClick)
{
m_placeCallDialog->show();
m_placeCallDialog->activateWindow();
}
}
void OutCall::show()
{
m_systemTryIcon->show();
}
|
This code with your changes does compile with Qt5.5 MSVC2010 32bit. If you are getting errors make sure you are using the correct encoding in your editor(because you are using non ASCII characters). In Qt Creator set encoding to UTF-8.
If there are some parts that are missing, or can not be translated just make sure to put that text inside |
Hi Mizra,
I checked that the tr() function was used in source files that were downloaded from github, but QTLinguist is not translating.
Where could the problem be? I checked the "includes" and saw that #include <QTranslator> is missing, is that it?
#include "OutCALL.h"
#include "DebugInfoDialog.h"
#include "SettingsDialog.h"
#include "AboutDialog.h"
#include "CallHistoryDialog.h"
#include "Global.h"
#include "ContactManager.h"
#include "PlaceCallDialog.h"
#include "AsteriskManager.h"
#include "Notifier.h"
#include "PopupWindow.h"
#include <QMenu>
#include <QDebug>
#include <QTcpSocket>
#include <QApplication>
#include <QDesktopServices>
#include <QUrl>
#include <QVariantList>
#include <QVariantMap>
#include <QMessageBox>
Here's the part of the OutCall.cpp code that needs to be translated:
void OutCall::createContextMenu()
{
// Exit action
QAction* exitAction = new QAction(tr("Exit"), m_menu);
connect(exitAction, &QAction::triggered, this, &OutCall::close);
// Sign In
m_signIn = new QAction(tr("Sign In"), m_menu);
connect(m_signIn, &QAction::triggered, this, &OutCall::signInOut);
// Add Contacts
QAction* addContactAction = new QAction(tr("Add Contact"), m_menu);
connect(addContactAction, &QAction::triggered, this, &OutCall::onAddContact);
// SettingsDialog
QAction* settingsAction = new QAction(tr("Settings"), m_menu);
connect(settingsAction, &QAction::triggered, this, &OutCall::onSettingsDialog);
QAction* debugInfoAction = new QAction(tr("Debug info"), m_menu);
connect(debugInfoAction, &QAction::triggered, this, &OutCall::onDebugInfo);
// About
QAction* aboutAction = new QAction(tr("About"), m_menu);
connect(aboutAction, &QAction::triggered, this, &OutCall::onAboutDialog);
// Help
QMenu *helpMenu = new QMenu(tr("Help"), m_menu);
m_menu->addMenu(helpMenu);
QAction* onlineHelp = new QAction(tr("Online HTML"), helpMenu);
connect(onlineHelp, &QAction::triggered, this, &OutCall::onOnlineHelp);
QAction* onlinePdf = new QAction(tr("Online PDF"), helpMenu);
connect(onlinePdf, &QAction::triggered, this, &OutCall::onOnlinePdf);
// Call History
QAction* callHistoryAction = new QAction(tr("Call History"), m_menu);
connect(callHistoryAction, &QAction::triggered, this, &OutCall::onCallHistory);
// Import Contacts
QMenu *importContactsMenu = new QMenu(tr("Sync Contacts"), m_menu);
QAction* importOutlookAction = new QAction(tr("From Outlook"), importContactsMenu);
connect(importOutlookAction, &QAction::triggered, this, &OutCall::onSyncOutlook);
// Place a Call
m_placeCall = new QAction(tr("Place a Call"), 0);
QFont font = m_placeCall->font();
font.setBold(true);
m_placeCall->setFont(font);
connect(m_placeCall, &QAction::triggered, this, &OutCall::onPlaceCall);
Att,
Roberto Xavier
Proxy Telecom Ltda
041 92431038 / 88442834
<http://www.proxytelecom.com.br/> www.proxytelecom.com.br
De: Mirza Dedic [mailto:[email protected]]
Enviada em: quarta-feira, 22 de fevereiro de 2017 11:25
Para: bicomsystems/outcall2 <[email protected]>
Cc: rxsantos <[email protected]>; Author <[email protected]>
Assunto: Re: [bicomsystems/outcall2] Language translation (#6)
This code with your changes does compile with Qt5.5 MSVC2010 32bit. If you are getting errors make sure you are using the correct encoding in your editor. In Qt Creator set encoding to UTF-8.
But I would not recommend to use non ASCII characters in source code. You probably will get a lot of
warnings from compiler and you will have to convert those characters from UTF-8. Leave the text in
english but use the tr() function to translate it to any language.
Would you have any suggestions for me to translate the parts that are missing?
If there are some parts that are missing, or can not be translated just make sure to put that text inside
the tr() function. Everything inside that function can be translated with QtLinguist.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#6 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AHGbHOTdHRhdRzc7qubKF4dDZ1uWV0iaks5rfEVBgaJpZM4MFvgd> . <https://github.com/notifications/beacon/AHGbHO4LSUthBEany_yP8vypBlvxaYJQks5rfEVBgaJpZM4MFvgd.gif>
#include "OutCALL.h"
#include "DebugInfoDialog.h"
#include "SettingsDialog.h"
#include "AboutDialog.h"
#include "CallHistoryDialog.h"
#include "Global.h"
#include "ContactManager.h"
#include "PlaceCallDialog.h"
#include "AsteriskManager.h"
#include "Notifier.h"
#include "PopupWindow.h"
#include <QMenu>
#include <QDebug>
#include <QTcpSocket>
#include <QApplication>
#include <QDesktopServices>
#include <QUrl>
#include <QVariantList>
#include <QVariantMap>
#include <QMessageBox>
OutCall::OutCall() :
QWidget()
{
m_systemTryIcon = new QSystemTrayIcon(this);
m_menu = new QMenu(this);
m_settingsDialog = new SettingsDialog;
m_aboutDialog = new AboutDialog;
m_debugInfoDialog = new DebugInfoDialog;
m_callHistoryDialog = new CallHistoryDialog;
m_placeCallDialog = new PlaceCallDialog;
connect(m_systemTryIcon, &QSystemTrayIcon::activated, this, &OutCall::onActivated);
connect(g_pContactManager, &ContactManager::syncing, this, &OutCall::onSyncing);
connect(g_pAsteriskManager, &AsteriskManager::messageReceived, this, &OutCall::onMessageReceived);
connect(g_pAsteriskManager, &AsteriskManager::callDeteceted, this, &OutCall::onCallDeteceted);
connect(g_pAsteriskManager, &AsteriskManager::callReceived, this, &OutCall::onCallReceived);
connect(g_pAsteriskManager, &AsteriskManager::error, this, &OutCall::displayError);
connect(g_pAsteriskManager, &AsteriskManager::stateChanged, this, &OutCall::onStateChanged);
connect(&m_timer, &QTimer::timeout, this, &OutCall::changeIcon);
global::setSettingsValue("InstallDir", g_AppDirPath.replace("/", "\\"));
createContextMenu();
m_systemTryIcon->setContextMenu(m_menu);
QString path(":/images/disconnected.png");
m_systemTryIcon->setIcon(QIcon(path));
automaticlySignIn();
}
OutCall::~OutCall()
{
delete m_settingsDialog;
delete m_debugInfoDialog;
delete m_aboutDialog;
delete m_callHistoryDialog;
delete m_placeCallDialog;
}
void OutCall::createContextMenu()
{
// Exit action
QAction* exitAction = new QAction(tr("Exit"), m_menu);
connect(exitAction, &QAction::triggered, this, &OutCall::close);
// Sign In
m_signIn = new QAction(tr("Sign In"), m_menu);
connect(m_signIn, &QAction::triggered, this, &OutCall::signInOut);
// Add Contacts
QAction* addContactAction = new QAction(tr("Add Contact"), m_menu);
connect(addContactAction, &QAction::triggered, this, &OutCall::onAddContact);
// SettingsDialog
QAction* settingsAction = new QAction(tr("Settings"), m_menu);
connect(settingsAction, &QAction::triggered, this, &OutCall::onSettingsDialog);
QAction* debugInfoAction = new QAction(tr("Debug info"), m_menu);
connect(debugInfoAction, &QAction::triggered, this, &OutCall::onDebugInfo);
// About
QAction* aboutAction = new QAction(tr("About"), m_menu);
connect(aboutAction, &QAction::triggered, this, &OutCall::onAboutDialog);
// Help
QMenu *helpMenu = new QMenu(tr("Help"), m_menu);
m_menu->addMenu(helpMenu);
QAction* onlineHelp = new QAction(tr("Online HTML"), helpMenu);
connect(onlineHelp, &QAction::triggered, this, &OutCall::onOnlineHelp);
QAction* onlinePdf = new QAction(tr("Online PDF"), helpMenu);
connect(onlinePdf, &QAction::triggered, this, &OutCall::onOnlinePdf);
// Call History
QAction* callHistoryAction = new QAction(tr("Call History"), m_menu);
connect(callHistoryAction, &QAction::triggered, this, &OutCall::onCallHistory);
// Import Contacts
QMenu *importContactsMenu = new QMenu(tr("Sync Contacts"), m_menu);
QAction* importOutlookAction = new QAction(tr("From Outlook"), importContactsMenu);
connect(importOutlookAction, &QAction::triggered, this, &OutCall::onSyncOutlook);
// Place a Call
m_placeCall = new QAction(tr("Place a Call"), 0);
QFont font = m_placeCall->font();
font.setBold(true);
m_placeCall->setFont(font);
connect(m_placeCall, &QAction::triggered, this, &OutCall::onPlaceCall);
helpMenu->addAction(onlineHelp);
helpMenu->addAction(onlinePdf);
// Add actions
m_menu->addAction(aboutAction);
m_menu->addSeparator();
m_menu->addAction(settingsAction);
m_menu->addAction(debugInfoAction);
m_menu->addSeparator();
m_menu->addAction(m_placeCall);
m_menu->addAction(callHistoryAction);
m_menu->addMenu(importContactsMenu);
importContactsMenu->addAction(importOutlookAction);
m_menu->addSeparator();
m_menu->addAction(m_signIn);
m_menu->addAction(addContactAction);
m_menu->addSeparator();
m_menu->addAction(exitAction);
}
void OutCall::automaticlySignIn()
{
bool autoSingIn = global::getSettingsValue("auto_sign_in", "general").toBool();
if(autoSingIn)
signInOut();
}
void OutCall::signInOut()
{
if (m_signIn->text() == "Cancel Sign In")
{
g_pAsteriskManager->signOut();
return;
}
if (g_pAsteriskManager->isSignedIn() == false)
{
QString server = global::getSettingsValue("servername", "settings").toString();
QString port = global::getSettingsValue("port", "settings", "5038").toString();
g_pAsteriskManager->signIn(server, port.toUInt());
}
else
{
g_pAsteriskManager->signOut();
}
}
void OutCall::onSyncOutlook()
{
g_pContactManager->refreshContacts();
}
void OutCall::displayError(QAbstractSocket::SocketError socketError, const QString &msg)
{
switch (socketError)
{
case QAbstractSocket::RemoteHostClosedError:
MsgBoxInformation(tr("The remote host closed the connection."));
break;
case QAbstractSocket::HostNotFoundError:
MsgBoxInformation(tr("The host was not found. Please check the "
"host name and port settings."));
break;
case QAbstractSocket::ConnectionRefusedError:
MsgBoxInformation(tr("The connection was refused by the peer. "
"Make sure the server is running, "
"and check that the host name and port "
"settings are correct."));
break;
default:
MsgBoxInformation(msg);
}
}
void OutCall::onSyncing(bool status)
{
if (status)
{
foreach(QAction *action, m_menu->actions())
{
if (action->text() == tr("Sync Contacts"))
{
m_systemTryIcon->setToolTip(tr("Syncing contacts"));
action->setText(tr("Syncing ..."));
action->setDisabled(true);
}
}
}
else
{
foreach(QAction *action, m_menu->actions())
{
if (action->text() == tr("Syncing ..."))
{
if (g_pAsteriskManager->isSignedIn())
m_systemTryIcon->setToolTip(tr(APP_NAME) + tr(" - ") + tr("Siged In"));
else
m_systemTryIcon->setToolTip(tr(APP_NAME) + tr(" - ") + tr("Not Siged In"));
action->setText(tr("Sync Contacts"));
action->setEnabled(true);
}
}
}
}
void OutCall::onAddContact()
{
g_pContactManager->addOutlookContact();
}
void OutCall::onMessageReceived(const QString &message)
{
if (m_debugInfoDialog)
m_debugInfoDialog->updateDebug(message);
}
void OutCall::onCallDeteceted(const QMap<QString, QVariant> &call, AsteriskManager::CallState state)
{
m_callHistoryDialog->addCall(call, (CallHistoryDialog::Calls)state);
}
void OutCall::onCallReceived(const QMap<QString, QVariant> &call)
{
QString from = call.value("from").toString();
QString callerName = call.value("callerIDName").toString();
bool isMinCallerID = global::getSettingsValue("min_caller_state", "general").toBool();
bool contactOnInboud = global::getSettingsValue("contact_inbound", "outlook").toBool();
bool contactOnUnknown = global::getSettingsValue("contact_unknown", "outlook").toBool();
bool isCallerIDUnknown = true;
int callerLength = from.size();
QList<Contact*> contactList = g_pContactManager->getContacts();
QString outlookContactName;
for(int i = 0; i < contactList.size(); ++i)
{
Contact *contact = contactList[i];
QList<QString> numbers = contact->numbers.values();
if (numbers.contains(from))
{
outlookContactName = contact->name;
isCallerIDUnknown = false;
break;
}
}
if (callerName.isEmpty() || callerName == "<unknown>" || !outlookContactName.isEmpty())
{
callerName = outlookContactName;
}
if (isMinCallerID)
{
int length = global::getSettingsValue("min_caller_id", "general").toInt();
if (callerLength >= length)
{
if (callerName.isEmpty() || callerName == "<unknown>")
{
PopupWindow::showCallNotification(QString("(Nr: %2)").arg(from));
}
else
{
PopupWindow::showCallNotification(QString("%1 (Nr: %2)").arg(callerName).arg(from));
}
}
}
else
{
if (callerName.isEmpty() || callerName == "<unknown>")
{
PopupWindow::showCallNotification(QString("(Nr: %2)").arg(from));
}
else
{
PopupWindow::showCallNotification(QString("%1 (Nr: %2)").arg(callerName).arg(from));
}
}
if (contactOnInboud && !isCallerIDUnknown)
{
g_pContactManager->viewOutlookContact(callerName, "");
}
else if (isCallerIDUnknown && contactOnUnknown)
{
g_pContactManager->addOutlookContact(from, callerName);
}
}
void OutCall::onStateChanged(AsteriskManager::AsteriskState state)
{
if (state == AsteriskManager::CONNECTED)
{
QString path(":/images/connected.png");
m_systemTryIcon->setIcon(QIcon(path));
m_signIn->setText(tr("Sign out"));
PopupWindow::showInformationMessage(tr(APP_NAME), tr("Signed In"));
m_systemTryIcon->setToolTip(tr(APP_NAME) + tr(" - ") + tr("Siged In"));
m_placeCall->setEnabled(true);
m_timer.stop();
}
else if (state == AsteriskManager::CONNECTING)
{
m_signIn->setText(tr("Cancel Sign In"));
m_systemTryIcon->setToolTip(tr(APP_NAME) + tr(" - ") + tr("Signing In"));
m_placeCall->setEnabled(false);
m_timer.start(500);
}
else if (state == AsteriskManager::DISCONNECTED)
{
QString path(":/images/disconnected.png");
m_systemTryIcon->setIcon(QIcon(path));
m_signIn->setText(tr("&Sign In"));
m_systemTryIcon->setToolTip(tr(APP_NAME) + tr(" - ") + tr("Not Siged In"));
m_placeCall->setEnabled(false);
m_timer.stop();
}
else if (state == AsteriskManager::AUTHENTICATION_FAILED)
{
QString path(":/images/started.png");
m_systemTryIcon->setIcon(QIcon(path));
PopupWindow::showInformationMessage(tr(APP_NAME), tr("Authentication failed"));
m_systemTryIcon->setToolTip(tr(APP_NAME) + tr(" - ") + tr("Not configured"));
m_signIn->setText(tr("&Sign In"));
m_placeCall->setEnabled(false);
m_timer.stop();
}
}
void OutCall::changeIcon()
{
if (m_switch)
{
QString path(":/images/connected.png");
m_systemTryIcon->setIcon(QIcon(path));
m_switch = false;
}
else
{
QString path(":/images/disconnected.png");
m_systemTryIcon->setIcon(QIcon(path));
m_switch = true;
}
}
void OutCall::onOnlineHelp()
{
QString link = "http://www.bicomsystems.com/docs/outcall/1.0/html/";
QDesktopServices::openUrl(QUrl(link));
}
void OutCall::onOnlinePdf()
{
QString link = "http://www.bicomsystems.com/docs/outcall/1.0/pdf/outcall.pdf";
QDesktopServices::openUrl(QUrl(link));
}
void OutCall::onCallHistory()
{
m_callHistoryDialog->show();
m_callHistoryDialog->raise();
}
void OutCall::onSettingsDialog()
{
SettingsDialog dialog;
dialog.exec();
}
void OutCall::onAboutDialog()
{
m_aboutDialog->show();
m_aboutDialog->raise();
}
void OutCall::onDebugInfo()
{
m_debugInfoDialog->show();
m_debugInfoDialog->raise();
}
void OutCall::onPlaceCall()
{
m_placeCallDialog->show();
m_placeCallDialog->raise();
}
void OutCall::close()
{
g_pAsteriskManager->signOut();
QApplication::quit();
}
void OutCall::onActivated(QSystemTrayIcon::ActivationReason reason)
{
if (reason == QSystemTrayIcon::Trigger)
{
m_debugInfoDialog->activateWindow();
m_aboutDialog->activateWindow();
m_settingsDialog->activateWindow();
m_callHistoryDialog->activateWindow();
g_pContactManager->activateDialog();
m_placeCallDialog->activateWindow();
}
else if (reason == QSystemTrayIcon::DoubleClick)
{
m_placeCallDialog->show();
m_placeCallDialog->activateWindow();
}
}
void OutCall::show()
{
m_systemTryIcon->show();
}
|
Hi, Mizra.
I am not able to compile. Too many errors when I try to compile. I already
checked the UTF-8 issue but failed.
I downloaded exactly the Qt5.5 MSVC2010 32bit version. Operating System
Windows 7 64bit.
Att,
Roberto Xavier
554130827457
www.proxytelecom.com.br
2017-02-24 0:04 GMT-03:00 Roberto Xavier <[email protected]>:
… Hi Mizra,
I checked that the tr() function was used in source files that were
downloaded from github, but QTLinguist is not translating.
Where could the problem be? I checked the "includes" and saw that #include
<QTranslator> is missing, is that it?
#include "OutCALL.h"
#include "DebugInfoDialog.h"
#include "SettingsDialog.h"
#include "AboutDialog.h"
#include "CallHistoryDialog.h"
#include "Global.h"
#include "ContactManager.h"
#include "PlaceCallDialog.h"
#include "AsteriskManager.h"
#include "Notifier.h"
#include "PopupWindow.h"
#include <QMenu>
#include <QDebug>
#include <QTcpSocket>
#include <QApplication>
#include <QDesktopServices>
#include <QUrl>
#include <QVariantList>
#include <QVariantMap>
#include <QMessageBox>
Here's the part of the OutCall.cpp code that needs to be translated:
void OutCall::createContextMenu()
{
// Exit action
QAction* exitAction = new QAction(tr("Exit"), m_menu);
connect(exitAction, &QAction::triggered, this, &OutCall::close);
// Sign In
m_signIn = new QAction(tr("Sign In"), m_menu);
connect(m_signIn, &QAction::triggered, this, &OutCall::signInOut);
// Add Contacts
QAction* addContactAction = new QAction(tr("Add Contact"), m_menu);
connect(addContactAction, &QAction::triggered, this,
&OutCall::onAddContact);
// SettingsDialog
QAction* settingsAction = new QAction(tr("Settings"), m_menu);
connect(settingsAction, &QAction::triggered, this,
&OutCall::onSettingsDialog);
QAction* debugInfoAction = new QAction(tr("Debug info"), m_menu);
connect(debugInfoAction, &QAction::triggered, this,
&OutCall::onDebugInfo);
// About
QAction* aboutAction = new QAction(tr("About"), m_menu);
connect(aboutAction, &QAction::triggered, this,
&OutCall::onAboutDialog);
// Help
QMenu *helpMenu = new QMenu(tr("Help"), m_menu);
m_menu->addMenu(helpMenu);
QAction* onlineHelp = new QAction(tr("Online HTML"), helpMenu);
connect(onlineHelp, &QAction::triggered, this, &OutCall::onOnlineHelp);
QAction* onlinePdf = new QAction(tr("Online PDF"), helpMenu);
connect(onlinePdf, &QAction::triggered, this, &OutCall::onOnlinePdf);
// Call History
QAction* callHistoryAction = new QAction(tr("Call History"), m_menu);
connect(callHistoryAction, &QAction::triggered, this,
&OutCall::onCallHistory);
// Import Contacts
QMenu *importContactsMenu = new QMenu(tr("Sync Contacts"), m_menu);
QAction* importOutlookAction = new QAction(tr("From Outlook"),
importContactsMenu);
connect(importOutlookAction, &QAction::triggered, this,
&OutCall::onSyncOutlook);
// Place a Call
m_placeCall = new QAction(tr("Place a Call"), 0);
QFont font = m_placeCall->font();
font.setBold(true);
m_placeCall->setFont(font);
connect(m_placeCall, &QAction::triggered, this, &OutCall::onPlaceCall);
Att,
Roberto Xavier
Proxy Telecom Ltda
041 92431038 / 88442834
www.proxytelecom.com.br
*De:* Mirza Dedic ***@***.***
*Enviada em:* quarta-feira, 22 de fevereiro de 2017 11:25
*Para:* bicomsystems/outcall2 ***@***.***>
*Cc:* rxsantos ***@***.***>; Author ***@***.***>
*Assunto:* Re: [bicomsystems/outcall2] Language translation (#6)
This code with your changes does compile with Qt5.5 MSVC2010 32bit. If you
are getting errors make sure you are using the correct encoding in your
editor. In Qt Creator set encoding to UTF-8.
But I would not recommend to use non ASCII characters in source code. You
probably will get a lot of
warnings from compiler and you will have to convert those characters from
UTF-8. Leave the text in
english but use the tr() function to translate it to any language.
Would you have any suggestions for me to translate the parts that are
missing?
If there are some parts that are missing, or can not be translated just
make sure to put that text inside
the tr() function. Everything inside that function can be translated with
QtLinguist.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHGbHOTdHRhdRzc7qubKF4dDZ1uWV0iaks5rfEVBgaJpZM4MFvgd>
.
|
Can you show me the errors ?
|
Yes,
[image: Imagem inline 1]
2017-03-15 3:34 GMT-03:00 Mirza Dedic <[email protected]>:
… Can you show me the errors ?
On Mar 15, 2017 04:28, "rxsantos" ***@***.***> wrote:
Hi, Mizra.
I am not able to compile. Too many errors when I try to compile. I already
checked the UTF-8 issue but failed.
I downloaded exactly the Qt5.5 MSVC2010 32bit version. Operating System
Windows 7 64bit.
Att,
Roberto Xavier
554130827457
www.proxytelecom.com.br
2017-02-24 0:04 GMT-03:00 Roberto Xavier ***@***.***>:
> Hi Mizra,
>
> I checked that the tr() function was used in source files that were
> downloaded from github, but QTLinguist is not translating.
>
> Where could the problem be? I checked the "includes" and saw that
#include
> <QTranslator> is missing, is that it?
>
>
>
> #include "OutCALL.h"
>
> #include "DebugInfoDialog.h"
>
> #include "SettingsDialog.h"
>
> #include "AboutDialog.h"
>
> #include "CallHistoryDialog.h"
>
> #include "Global.h"
>
> #include "ContactManager.h"
>
> #include "PlaceCallDialog.h"
>
> #include "AsteriskManager.h"
>
> #include "Notifier.h"
>
> #include "PopupWindow.h"
>
>
>
> #include <QMenu>
>
> #include <QDebug>
>
> #include <QTcpSocket>
>
> #include <QApplication>
>
> #include <QDesktopServices>
>
> #include <QUrl>
>
> #include <QVariantList>
>
> #include <QVariantMap>
>
> #include <QMessageBox>
>
>
>
>
>
> Here's the part of the OutCall.cpp code that needs to be translated:
>
>
>
>
>
> void OutCall::createContextMenu()
>
> {
>
> // Exit action
>
> QAction* exitAction = new QAction(tr("Exit"), m_menu);
>
> connect(exitAction, &QAction::triggered, this, &OutCall::close);
>
>
>
> // Sign In
>
> m_signIn = new QAction(tr("Sign In"), m_menu);
>
> connect(m_signIn, &QAction::triggered, this, &OutCall::signInOut);
>
>
>
> // Add Contacts
>
> QAction* addContactAction = new QAction(tr("Add Contact"), m_menu);
>
> connect(addContactAction, &QAction::triggered, this,
> &OutCall::onAddContact);
>
>
>
> // SettingsDialog
>
> QAction* settingsAction = new QAction(tr("Settings"), m_menu);
>
> connect(settingsAction, &QAction::triggered, this,
> &OutCall::onSettingsDialog);
>
>
>
> QAction* debugInfoAction = new QAction(tr("Debug info"), m_menu);
>
> connect(debugInfoAction, &QAction::triggered, this,
> &OutCall::onDebugInfo);
>
>
>
> // About
>
> QAction* aboutAction = new QAction(tr("About"), m_menu);
>
> connect(aboutAction, &QAction::triggered, this,
> &OutCall::onAboutDialog);
>
>
>
> // Help
>
> QMenu *helpMenu = new QMenu(tr("Help"), m_menu);
>
> m_menu->addMenu(helpMenu);
>
>
>
> QAction* onlineHelp = new QAction(tr("Online HTML"), helpMenu);
>
> connect(onlineHelp, &QAction::triggered, this, &OutCall::onOnlineHelp);
>
>
>
> QAction* onlinePdf = new QAction(tr("Online PDF"), helpMenu);
>
> connect(onlinePdf, &QAction::triggered, this, &OutCall::onOnlinePdf);
>
>
>
> // Call History
>
> QAction* callHistoryAction = new QAction(tr("Call History"), m_menu);
>
> connect(callHistoryAction, &QAction::triggered, this,
> &OutCall::onCallHistory);
>
>
>
> // Import Contacts
>
> QMenu *importContactsMenu = new QMenu(tr("Sync Contacts"), m_menu);
>
>
>
> QAction* importOutlookAction = new QAction(tr("From Outlook"),
> importContactsMenu);
>
> connect(importOutlookAction, &QAction::triggered, this,
> &OutCall::onSyncOutlook);
>
>
>
> // Place a Call
>
> m_placeCall = new QAction(tr("Place a Call"), 0);
>
> QFont font = m_placeCall->font();
>
> font.setBold(true);
>
> m_placeCall->setFont(font);
>
> connect(m_placeCall, &QAction::triggered, this, &OutCall::onPlaceCall);
>
>
>
>
>
>
>
> Att,
>
> Roberto Xavier
>
> Proxy Telecom Ltda
>
> 041 92431038 / 88442834
>
> www.proxytelecom.com.br
>
>
>
>
>
>
>
>
>
> *De:* Mirza Dedic ***@***.***
> *Enviada em:* quarta-feira, 22 de fevereiro de 2017 11:25
> *Para:* bicomsystems/outcall2 ***@***.***>
> *Cc:* rxsantos ***@***.***>; Author ***@***.***>
> *Assunto:* Re: [bicomsystems/outcall2] Language translation (#6)
>
>
>
> This code with your changes does compile with Qt5.5 MSVC2010 32bit. If
you
> are getting errors make sure you are using the correct encoding in your
> editor. In Qt Creator set encoding to UTF-8.
> But I would not recommend to use non ASCII characters in source code. You
> probably will get a lot of
> warnings from compiler and you will have to convert those characters from
> UTF-8. Leave the text in
> english but use the tr() function to translate it to any language.
>
> Would you have any suggestions for me to translate the parts that are
> missing?
>
> If there are some parts that are missing, or can not be translated just
> make sure to put that text inside
> the tr() function. Everything inside that function can be translated with
> QtLinguist.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/bicomsystems/outcall2/issues/
6#issuecomment-281683024
>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/
AHGbHOTdHRhdRzc7qubKF4dDZ1uWV0iaks5rfEVBgaJpZM4MFvgd>
> .
>
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#6 (comment)
>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
ADqIlOz4Zu5DdOoreKympYJs0EY502zUks5rl1rigaJpZM4MFvgd>
.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHGbHK3VHFbmPpxLr6nbMD3IveW0yK4Vks5rl4aEgaJpZM4MFvgd>
.
|
You didn't upload the image correctly. |
Hi Mizra,
Follows compiler output:
13:40:01: Running steps for project OutCALL...
13:40:01: Configuration unchanged, skipping qmake step.
13:40:01: Starting: "C:\Qt\Qt5.5.0\Tools\mingw492_32\bin\mingw32-make.exe"
C:/Qt/Qt5.5.0/Tools/mingw492_32/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory 'C:/Users/Roberto/Documents/build-OutCALL-Desktop_Qt_5_5_0_MinGW_32bit-Debug'
g++ -c -pipe -fno-keep-inline-dllexport -std=c++11 -std=c++0x -g -std=c++0x -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I..\OutCall2 -I. -I..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include -I..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtWidgets -I..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtGui -I..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtANGLE -I..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtNetwork -I..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtSql -I..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtCore -Idebug -I. -I..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\mkspecs\win32-g++ -o debug\AsteriskManager.o ..\OutCall2\AsteriskManager.cpp
In file included from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qiterator.h:37:0,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtCore/qmap.h:37,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtCore/QMap:1,
from ..\OutCall2\AsteriskManager.h:4,
from ..\OutCall2\AsteriskManager.cpp:1:
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qglobal.h:692:2: error: invalid preprocessing directive #defiX
#defiX(ne Q_STATIC_ASSERT(Condition) static_assert(bool(Condition), #Condition)
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qglobal.h:693:34: warning: ISO C99 requires whitespace after the macro name
#define Q_STATIC_ASSERT_Condition, Message) static_assert(bool(Condition), Message)
^
In file included from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qtypeinfo.h:34:0,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qglobal.h:1098,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qiterator.h:37,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtCore/qmap.h:37,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtCore/QMap:1,
from ..\OutCall2\AsteriskManager.h:4,
from ..\OutCall2\AsteriskManager.cpp:1:
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qtypetraits.h:485:16: error: expected constructor, destructor, or type conversion before '(' token
Q_STATIC_ASSERT(( is_unsigned<quint8>::value));
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qtypetraits.h:486:16: error: expected constructor, destructor, or type conversion before '(' token
Q_STATIC_ASSERT((!is_unsigned<qint8>::value));
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qtypetraits.h:488:16: error: expected constructor, destructor, or type conversion before '(' token
Q_STATIC_ASSERT((!is_signed<quint8>::value));
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qtypetraits.h:489:16: error: expected constructor, destructor, or type conversion before '(' token
Q_STATIC_ASSERT(( is_signed<qint8>::value));
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qtypetraits.h:491:16: error: expected constructor, destructor, or type conversion before '(' token
Q_STATIC_ASSERT(( is_unsigned<quint16>::value));
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qtypetraits.h:492:16: error: expected constructor, destructor, or type conversion before '(' token
Q_STATIC_ASSERT((!is_unsigned<qint16>::value));
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qtypetraits.h:494:16: error: expected constructor, destructor, or type conversion before '(' token
Q_STATIC_ASSERT((!is_signed<quint16>::value));
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qtypetraits.h:495:16: error: expected constructor, destructor, or type conversion before '(' token
Q_STATIC_ASSERT(( is_signed<qint16>::value));
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qtypetraits.h:497:16: error: expected constructor, destructor, or type conversion before '(' token
Q_STATIC_ASSERT(( is_unsigned<quint32>::value));
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qtypetraits.h:498:16: error: expected constructor, destructor, or type conversion before '(' token
Q_STATIC_ASSERT((!is_unsigned<qint32>::value));
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qtypetraits.h:500:16: error: expected constructor, destructor, or type conversion before '(' token
Q_STATIC_ASSERT((!is_signed<quint32>::value));
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qtypetraits.h:501:16: error: expected constructor, destructor, or type conversion before '(' token
Q_STATIC_ASSERT(( is_signed<qint32>::value));
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qtypetraits.h:503:16: error: expected constructor, destructor, or type conversion before '(' token
Q_STATIC_ASSERT(( is_unsigned<quint64>::value));
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qtypetraits.h:504:16: error: expected constructor, destructor, or type conversion before '(' token
Q_STATIC_ASSERT((!is_unsigned<qint64>::value));
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qtypetraits.h:506:16: error: expected constructor, destructor, or type conversion before '(' token
Q_STATIC_ASSERT((!is_signed<quint64>::value));
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qtypetraits.h:507:16: error: expected constructor, destructor, or type conversion before '(' token
Q_STATIC_ASSERT(( is_signed<qint64>::value));
^
In file included from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qglobal.h:1102:0,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qiterator.h:37,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtCore/qmap.h:37,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtCore/QMap:1,
from ..\OutCall2\AsteriskManager.h:4,
from ..\OutCall2\AsteriskManager.cpp:1:
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qflags.h:88:23: error: expected identifier before '(' token
Q_STATIC_ASSERT_X((sizeof(Enum) <= sizeof(int)),
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qflags.h:88:24: error: expected ')' before 'sizeof'
Q_STATIC_ASSERT_X((sizeof(Enum) <= sizeof(int)),
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qflags.h:88:24: error: expected ')' before 'sizeof'
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qflags.h:88:23: error: expected ';' at end of member declaration
Q_STATIC_ASSERT_X((sizeof(Enum) <= sizeof(int)),
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qflags.h:88:24: error: expected unqualified-id before 'sizeof'
Q_STATIC_ASSERT_X((sizeof(Enum) <= sizeof(int)),
^
In file included from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qatomic.h:39:0,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qglobal.h:1104,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qiterator.h:37,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtCore/qmap.h:37,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtCore/QMap:1,
from ..\OutCall2\AsteriskManager.h:4,
from ..\OutCall2\AsteriskManager.cpp:1:
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qbasicatomic.h:111:37: error: 'QTypeInfo<T>::isIntegral' is not a type
Q_STATIC_ASSERT_X(QTypeInfo<T>::isIntegral, "template parameter is not an integral type");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qbasicatomic.h:111:49: error: expected identifier before string constant
Q_STATIC_ASSERT_X(QTypeInfo<T>::isIntegral, "template parameter is not an integral type");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qbasicatomic.h:111:49: error: expected ',' or '...' before string constant
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qbasicatomic.h:112:53: error: 'QAtomicOpsSupport<sizeof (T)>::IsSupported' is not a type
Q_STATIC_ASSERT_X(QAtomicOpsSupport<sizeof(T)>::IsSupported, "template parameter is an integral of a size not supported on this platform");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qbasicatomic.h:112:66: error: expected identifier before string constant
Q_STATIC_ASSERT_X(QAtomicOpsSupport<sizeof(T)>::IsSupported, "template parameter is an integral of a size not supported on this platform");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qbasicatomic.h:112:66: error: expected ',' or '...' before string constant
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qbasicatomic.h:112:5: error: 'int QBasicAtomicInteger<T>::Q_STATIC_ASSERT_X(int, int)' cannot be overloaded
Q_STATIC_ASSERT_X(QAtomicOpsSupport<sizeof(T)>::IsSupported, "template parameter is an integral of a size not supported on this platform");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qbasicatomic.h:111:5: error: with 'int QBasicAtomicInteger<T>::Q_STATIC_ASSERT_X(int, int)'
Q_STATIC_ASSERT_X(QTypeInfo<T>::isIntegral, "template parameter is not an integral type");
^
In file included from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qlist.h:40:0,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtCore/qmap.h:38,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtCore/QMap:1,
from ..\OutCall2\AsteriskManager.h:4,
from ..\OutCall2\AsteriskManager.cpp:1:
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qarraydata.h: In static member function 'static QTypedArrayData<T>* QTypedArrayData<T>::allocate(size_t, QArrayData::AllocationOptions)':
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qarraydata.h:214:70: error: there are no arguments to 'Q_STATIC_ASSERT' that depend on a template parameter, so a declaration of 'Q_STATIC_ASSERT' must be available [-fpermissive]
Q_STATIC_ASSERT(sizeof(QTypedArrayData) == sizeof(QArrayData));
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qarraydata.h:214:70: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qarraydata.h: In static member function 'static void QTypedArrayData<T>::deallocate(QArrayData*)':
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qarraydata.h:221:70: error: there are no arguments to 'Q_STATIC_ASSERT' that depend on a template parameter, so a declaration of 'Q_STATIC_ASSERT' must be available [-fpermissive]
Q_STATIC_ASSERT(sizeof(QTypedArrayData) == sizeof(QArrayData));
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qarraydata.h: In static member function 'static QTypedArrayData<T>* QTypedArrayData<T>::fromRawData(const T*, size_t, QArrayData::AllocationOptions)':
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qarraydata.h:228:70: error: there are no arguments to 'Q_STATIC_ASSERT' that depend on a template parameter, so a declaration of 'Q_STATIC_ASSERT' must be available [-fpermissive]
Q_STATIC_ASSERT(sizeof(QTypedArrayData) == sizeof(QArrayData));
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qarraydata.h: In static member function 'static QTypedArrayData<T>* QTypedArrayData<T>::sharedNull()':
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qarraydata.h:242:70: error: there are no arguments to 'Q_STATIC_ASSERT' that depend on a template parameter, so a declaration of 'Q_STATIC_ASSERT' must be available [-fpermissive]
Q_STATIC_ASSERT(sizeof(QTypedArrayData) == sizeof(QArrayData));
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qarraydata.h: In static member function 'static QTypedArrayData<T>* QTypedArrayData<T>::sharedEmpty()':
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qarraydata.h:248:70: error: there are no arguments to 'Q_STATIC_ASSERT' that depend on a template parameter, so a declaration of 'Q_STATIC_ASSERT' must be available [-fpermissive]
Q_STATIC_ASSERT(sizeof(QTypedArrayData) == sizeof(QArrayData));
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qarraydata.h: In static member function 'static QTypedArrayData<T>* QTypedArrayData<T>::unsharableEmpty()':
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qarraydata.h:254:70: error: there are no arguments to 'Q_STATIC_ASSERT' that depend on a template parameter, so a declaration of 'Q_STATIC_ASSERT' must be available [-fpermissive]
Q_STATIC_ASSERT(sizeof(QTypedArrayData) == sizeof(QArrayData));
^
In file included from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qregexp.h:41:0,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qstringlist.h:40,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qlist.h:1026,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtCore/qmap.h:38,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtCore/QMap:1,
from ..\OutCall2\AsteriskManager.h:4,
from ..\OutCall2\AsteriskManager.cpp:1:
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qstring.h: At global scope:
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qstring.h:152:18: error: expected constructor, destructor, or type conversion before '(' token
Q_STATIC_ASSERT_X(sizeof(qunicodechar) == 2,
^
In file included from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtCore/QMap:1:0,
from ..\OutCall2\AsteriskManager.h:4,
from ..\OutCall2\AsteriskManager.cpp:1:
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtCore/qmap.h: In function 'bool qMapLessThanKey(const Ptr*, const Ptr*)':
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtCore/qmap.h:72:60: error: there are no arguments to 'Q_STATIC_ASSERT' that depend on a template parameter, so a declaration of 'Q_STATIC_ASSERT' must be available [-fpermissive]
Q_STATIC_ASSERT(sizeof(quintptr) == sizeof(const Ptr *));
^
In file included from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:41:0,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:48,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qiodevice.h:39,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtNetwork/qabstractsocket.h:37,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtNetwork/qtcpsocket.h:37,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtNetwork/QTcpSocket:1,
from ..\OutCall2\AsteriskManager.h:5,
from ..\OutCall2\AsteriskManager.cpp:1:
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qvarlengtharray.h: In constructor 'QVarLengthArray<T, Prealloc>::QVarLengthArray(int)':
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qvarlengtharray.h:222:87: error: there are no arguments to 'Q_STATIC_ASSERT_X' that depend on a template parameter, so a declaration of 'Q_STATIC_ASSERT_X' must be available [-fpermissive]
Q_STATIC_ASSERT_X(Prealloc > 0, "QVarLengthArray Prealloc must be greater than 0.");
^
In file included from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:48:0,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qiodevice.h:39,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtNetwork/qabstractsocket.h:37,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtNetwork/qtcpsocket.h:37,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtNetwork/QTcpSocket:1,
from ..\OutCall2\AsteriskManager.h:5,
from ..\OutCall2\AsteriskManager.cpp:1:
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h: At global scope:
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:1356:27: error: expected identifier before 'sizeof'
Q_STATIC_ASSERT_X(sizeof(T), "Type argument of Q_DECLARE_METATYPE(T*) must be fully defined");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:1356:27: error: expected ',' or '...' before 'sizeof'
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h: In instantiation of 'constexpr int qMetaTypeId() [with T = QtMetaTypePrivate::QPairVariantInterfaceImpl]':
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:2188:80: required from here
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:1725:158: error: 'Q_STATIC_ASSERT_X' was not declared in this scope
Q_STATIC_ASSERT_X(QMetaTypeId2<T>::Defined, "Type is not registered, please use the Q_DECLARE_METATYPE macro to make it known to Qt's meta-object system");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:1727:1: error: body of constexpr function 'constexpr int qMetaTypeId() [with T = QtMetaTypePrivate::QPairVariantInterfaceImpl]' not a return-statement
}
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h: In instantiation of 'constexpr int qMetaTypeId() [with T = QtMetaTypePrivate::QSequentialIterableImpl]':
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:2205:86: required from here
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:1725:158: error: 'Q_STATIC_ASSERT_X' was not declared in this scope
Q_STATIC_ASSERT_X(QMetaTypeId2<T>::Defined, "Type is not registered, please use the Q_DECLARE_METATYPE macro to make it known to Qt's meta-object system");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:1727:1: error: body of constexpr function 'constexpr int qMetaTypeId() [with T = QtMetaTypePrivate::QSequentialIterableImpl]' not a return-statement
}
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h: In instantiation of 'constexpr int qMetaTypeId() [with T = QtMetaTypePrivate::QAssociativeIterableImpl]':
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:2222:87: required from here
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:1725:158: error: 'Q_STATIC_ASSERT_X' was not declared in this scope
Q_STATIC_ASSERT_X(QMetaTypeId2<T>::Defined, "Type is not registered, please use the Q_DECLARE_METATYPE macro to make it known to Qt's meta-object system");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:1727:1: error: body of constexpr function 'constexpr int qMetaTypeId() [with T = QtMetaTypePrivate::QAssociativeIterableImpl]' not a return-statement
}
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h: In instantiation of 'constexpr int qMetaTypeId() [with T = QStringList]':
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:2238:47: required from here
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:1725:158: error: 'Q_STATIC_ASSERT_X' was not declared in this scope
Q_STATIC_ASSERT_X(QMetaTypeId2<T>::Defined, "Type is not registered, please use the Q_DECLARE_METATYPE macro to make it known to Qt's meta-object system");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:1727:1: error: body of constexpr function 'constexpr int qMetaTypeId() [with T = QStringList]' not a return-statement
}
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h: In instantiation of 'constexpr int qMetaTypeId() [with T = QList<QByteArray>]':
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:2239:54: required from here
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:1725:158: error: 'Q_STATIC_ASSERT_X' was not declared in this scope
Q_STATIC_ASSERT_X(QMetaTypeId2<T>::Defined, "Type is not registered, please use the Q_DECLARE_METATYPE macro to make it known to Qt's meta-object system");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:1727:1: error: body of constexpr function 'constexpr int qMetaTypeId() [with T = QList<QByteArray>]' not a return-statement
}
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h: In instantiation of 'constexpr int qMetaTypeId() [with T = QList<QVariant>]':
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:2240:52: required from here
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:1725:158: error: 'Q_STATIC_ASSERT_X' was not declared in this scope
Q_STATIC_ASSERT_X(QMetaTypeId2<T>::Defined, "Type is not registered, please use the Q_DECLARE_METATYPE macro to make it known to Qt's meta-object system");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:1727:1: error: body of constexpr function 'constexpr int qMetaTypeId() [with T = QList<QVariant>]' not a return-statement
}
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h: In instantiation of 'constexpr int qMetaTypeId() [with T = QHash<QString, QVariant>]':
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:2245:48: required from here
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:1725:158: error: 'Q_STATIC_ASSERT_X' was not declared in this scope
Q_STATIC_ASSERT_X(QMetaTypeId2<T>::Defined, "Type is not registered, please use the Q_DECLARE_METATYPE macro to make it known to Qt's meta-object system");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:1727:1: error: body of constexpr function 'constexpr int qMetaTypeId() [with T = QHash<QString, QVariant>]' not a return-statement
}
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h: In instantiation of 'constexpr int qMetaTypeId() [with T = QMap<QString, QVariant>]':
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:2246:51: required from here
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:1725:158: error: 'Q_STATIC_ASSERT_X' was not declared in this scope
Q_STATIC_ASSERT_X(QMetaTypeId2<T>::Defined, "Type is not registered, please use the Q_DECLARE_METATYPE macro to make it known to Qt's meta-object system");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:1727:1: error: body of constexpr function 'constexpr int qMetaTypeId() [with T = QMap<QString, QVariant>]' not a return-statement
}
^
In file included from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qiodevice.h:39:0,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtNetwork/qabstractsocket.h:37,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtNetwork/qtcpsocket.h:37,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtNetwork/QTcpSocket:1,
from ..\OutCall2\AsteriskManager.h:5,
from ..\OutCall2\AsteriskManager.cpp:1:
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h: In static member function 'static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType)':
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:225:87: error: there are no arguments to 'Q_STATIC_ASSERT_X' that depend on a template parameter, so a declaration of 'Q_STATIC_ASSERT_X' must be available [-fpermissive]
"The slot requires more arguments than the signal provides.");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h: In static member function 'static typename QtPrivate::QEnableIf<(((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0) && (! QtPrivate::FunctionPointer<Func2>::IsPointerToMemberFunction)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType)':
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:265:87: error: there are no arguments to 'Q_STATIC_ASSERT_X' that depend on a template parameter, so a declaration of 'Q_STATIC_ASSERT_X' must be available [-fpermissive]
"The slot requires more arguments than the signal provides.");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h: In static member function 'static typename QtPrivate::QEnableIf<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == (-1)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType)':
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:301:74: error: there are no arguments to 'Q_STATIC_ASSERT_X' that depend on a template parameter, so a declaration of 'Q_STATIC_ASSERT_X' must be available [-fpermissive]
"Signal and slot arguments are not compatible.");
^
In file included from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:48:0,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qiodevice.h:39,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtNetwork/qabstractsocket.h:37,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtNetwork/qtcpsocket.h:37,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtNetwork/QTcpSocket:1,
from ..\OutCall2\AsteriskManager.h:5,
from ..\OutCall2\AsteriskManager.cpp:1:
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h: In instantiation of 'constexpr int qMetaTypeId() [with T = QPair<QVariant, QVariant>]':
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qvariant.h:795:67: required from here
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:1725:158: error: 'Q_STATIC_ASSERT_X' was not declared in this scope
Q_STATIC_ASSERT_X(QMetaTypeId2<T>::Defined, "Type is not registered, please use the Q_DECLARE_METATYPE macro to make it known to Qt's meta-object system");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:1727:1: error: body of constexpr function 'constexpr int qMetaTypeId() [with T = QPair<QVariant, QVariant>]' not a return-statement
}
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h: In instantiation of 'constexpr int qMetaTypeId() [with T = QVariant]':
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qvariant.h:803:60: required from here
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:1725:158: error: 'Q_STATIC_ASSERT_X' was not declared in this scope
Q_STATIC_ASSERT_X(QMetaTypeId2<T>::Defined, "Type is not registered, please use the Q_DECLARE_METATYPE macro to make it known to Qt's meta-object system");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:1727:1: error: body of constexpr function 'constexpr int qMetaTypeId() [with T = QVariant]' not a return-statement
}
^
In file included from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtCore/QTimer:1:0,
from ..\OutCall2\AsteriskManager.h:7,
from ..\OutCall2\AsteriskManager.cpp:1:
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtCore/qtimer.h: In static member function 'static void QTimer::singleShot(int, Qt::TimerType, const typename QtPrivate::FunctionPointer<Func>::Object*, Func1)':
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtCore/qtimer.h:98:66: error: there are no arguments to 'Q_STATIC_ASSERT_X' that depend on a template parameter, so a declaration of 'Q_STATIC_ASSERT_X' must be available [-fpermissive]
"The slot must not have any arguments.");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtCore/qtimer.h: In static member function 'static typename QtPrivate::QEnableIf<((! QtPrivate::FunctionPointer<Func>::IsPointerToMemberFunction) && (! QtPrivate::is_same<const char*, Func1>::value)), void>::Type QTimer::singleShot(int, Qt::TimerType, QObject*, Func1)':
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtCore/qtimer.h:129:102: error: there are no arguments to 'Q_STATIC_ASSERT_X' that depend on a template parameter, so a declaration of 'Q_STATIC_ASSERT_X' must be available [-fpermissive]
Q_STATIC_ASSERT_X(int(SlotType::ArgumentCount) <= 0, "The slot must not have any arguments.");
^
In file included from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtGui/qimage.h:40:0,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtGui/qbrush.h:44,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtGui/qpalette.h:39,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtWidgets/qwidget.h:41,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtWidgets/qdialog.h:37,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtWidgets/qmessagebox.h:37,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtWidgets/QMessageBox:1,
from ..\OutCall2\Global.h:12,
from ..\OutCall2\AsteriskManager.cpp:3:
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtGui/qpixelformat.h: At global scope:
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtGui/qpixelformat.h:89:51: error: expected ',' or '...' before '==' token
Q_STATIC_ASSERT(uint(TotalFieldWidthByWidths) == uint(TotalFieldWidthByOffsets));
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtGui/qpixelformat.h:90:51: error: expected ',' or '...' before '==' token
Q_STATIC_ASSERT(uint(TotalFieldWidthByWidths) == 8 * sizeof(quint64));
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtGui/qpixelformat.h:90:5: error: 'int QPixelFormat::Q_STATIC_ASSERT(uint)' cannot be overloaded
Q_STATIC_ASSERT(uint(TotalFieldWidthByWidths) == 8 * sizeof(quint64));
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtGui/qpixelformat.h:89:5: error: with 'int QPixelFormat::Q_STATIC_ASSERT(uint)'
Q_STATIC_ASSERT(uint(TotalFieldWidthByWidths) == uint(TotalFieldWidthByOffsets));
^
In file included from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtGui/qimage.h:40:0,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtGui/qbrush.h:44,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtGui/qpalette.h:39,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtWidgets/qwidget.h:41,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtWidgets/qdialog.h:37,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtWidgets/qmessagebox.h:37,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtWidgets/QMessageBox:1,
from ..\OutCall2\Global.h:12,
from ..\OutCall2\AsteriskManager.cpp:3:
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtGui/qpixelformat.h:225:16: error: expected constructor, destructor, or type conversion before '(' token
Q_STATIC_ASSERT(sizeof(QPixelFormat) == sizeof(quint64));
^
Makefile.Debug:3085: recipe for target 'debug/AsteriskManager.o' failed
In file included from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qlist.h:40:0,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtCore/qmap.h:38,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtCore/QMap:1,
from ..\OutCall2\AsteriskManager.h:4,
from ..\OutCall2\AsteriskManager.cpp:1:
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qarraydata.h: In instantiation of 'static QTypedArrayData<T>* QTypedArrayData<T>::sharedNull() [with T = char]':
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qbytearray.h:187:90: required from here
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qarraydata.h:242:70: error: 'Q_STATIC_ASSERT' was not declared in this scope
Q_STATIC_ASSERT(sizeof(QTypedArrayData) == sizeof(QArrayData));
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qarraydata.h: In instantiation of 'static void QTypedArrayData<T>::deallocate(QArrayData*) [with T = char]':
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qbytearray.h:459:63: required from here
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qarraydata.h:221:70: error: 'Q_STATIC_ASSERT' was not declared in this scope
Q_STATIC_ASSERT(sizeof(QTypedArrayData) == sizeof(QArrayData));
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qarraydata.h: In instantiation of 'static QTypedArrayData<T>* QTypedArrayData<T>::sharedNull() [with T = short unsigned int]':
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qstring.h:224:84: required from here
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qarraydata.h:242:70: error: 'Q_STATIC_ASSERT' was not declared in this scope
Q_STATIC_ASSERT(sizeof(QTypedArrayData) == sizeof(QArrayData));
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qarraydata.h: In instantiation of 'static void QTypedArrayData<T>::deallocate(QArrayData*) [with T = short unsigned int]':
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qstring.h:1053:57: required from here
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qarraydata.h:221:70: error: 'Q_STATIC_ASSERT' was not declared in this scope
Q_STATIC_ASSERT(sizeof(QTypedArrayData) == sizeof(QArrayData));
^
In file included from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:48:0,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qiodevice.h:39,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtNetwork/qabstractsocket.h:37,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtNetwork/qtcpsocket.h:37,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtNetwork/QTcpSocket:1,
from ..\OutCall2\AsteriskManager.h:5,
from ..\OutCall2\AsteriskManager.cpp:1:
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h: In instantiation of 'constexpr int qMetaTypeId() [with T = QString]':
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:1013:58: required from 'QtMetaTypePrivate::QSequentialIterableImpl::QSequentialIterableImpl(const T*) [with T = QStringList]'
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qvariant.h:714:138: required from here
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:1725:158: error: 'Q_STATIC_ASSERT_X' was not declared in this scope
Q_STATIC_ASSERT_X(QMetaTypeId2<T>::Defined, "Type is not registered, please use the Q_DECLARE_METATYPE macro to make it known to Qt's meta-object system");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:1727:1: error: body of constexpr function 'constexpr int qMetaTypeId() [with T = QString]' not a return-statement
}
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h: In instantiation of 'constexpr int qMetaTypeId() [with T = QByteArray]':
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:1013:58: required from 'QtMetaTypePrivate::QSequentialIterableImpl::QSequentialIterableImpl(const T*) [with T = QList<QByteArray>]'
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qvariant.h:718:141: required from here
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:1725:158: error: 'Q_STATIC_ASSERT_X' was not declared in this scope
Q_STATIC_ASSERT_X(QMetaTypeId2<T>::Defined, "Type is not registered, please use the Q_DECLARE_METATYPE macro to make it known to Qt's meta-object system");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qmetatype.h:1727:1: error: body of constexpr function 'constexpr int qMetaTypeId() [with T = QByteArray]' not a return-statement
}
^
In file included from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qiodevice.h:39:0,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtNetwork/qabstractsocket.h:37,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtNetwork/qtcpsocket.h:37,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtNetwork/QTcpSocket:1,
from ..\OutCall2\AsteriskManager.h:5,
from ..\OutCall2\AsteriskManager.cpp:1:
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h: In instantiation of 'static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType) [with Func1 = void (QIODevice::*)(); Func2 = void (AsteriskManager::*)(); typename QtPrivate::FunctionPointer<Func>::Object = QIODevice; typename QtPrivate::FunctionPointer<Func2>::Object = AsteriskManager]':
..\OutCall2\AsteriskManager.cpp:26:83: required from here
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:221:69: error: 'Q_STATIC_ASSERT_X' was not declared in this scope
"No Q_OBJECT in the class with the signal");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:225:87: error: 'Q_STATIC_ASSERT_X' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
"The slot requires more arguments than the signal provides.");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:221:69: note: 'Q_STATIC_ASSERT_X' declared here, later in the translation unit
"No Q_OBJECT in the class with the signal");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:227:74: error: 'Q_STATIC_ASSERT_X' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
"Signal and slot arguments are not compatible.");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:221:69: note: 'Q_STATIC_ASSERT_X' declared here, later in the translation unit
"No Q_OBJECT in the class with the signal");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:229:106: error: 'Q_STATIC_ASSERT_X' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
"Return type of the slot is not compatible with the return type of the signal.");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:221:69: note: 'Q_STATIC_ASSERT_X' declared here, later in the translation unit
"No Q_OBJECT in the class with the signal");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h: In instantiation of 'static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType) [with Func1 = void (QAbstractSocket::*)(); Func2 = void (AsteriskManager::*)(); typename QtPrivate::FunctionPointer<Func>::Object = QAbstractSocket; typename QtPrivate::FunctionPointer<Func2>::Object = AsteriskManager]':
..\OutCall2\AsteriskManager.cpp:27:84: required from here
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:221:69: error: 'Q_STATIC_ASSERT_X' was not declared in this scope
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:225:87: error: 'Q_STATIC_ASSERT_X' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
"The slot requires more arguments than the signal provides.");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:221:69: note: 'Q_STATIC_ASSERT_X' declared here, later in the translation unit
"No Q_OBJECT in the class with the signal");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:227:74: error: 'Q_STATIC_ASSERT_X' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
"Signal and slot arguments are not compatible.");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:221:69: note: 'Q_STATIC_ASSERT_X' declared here, later in the translation unit
"No Q_OBJECT in the class with the signal");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:229:106: error: 'Q_STATIC_ASSERT_X' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
"Return type of the slot is not compatible with the return type of the signal.");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:221:69: note: 'Q_STATIC_ASSERT_X' declared here, later in the translation unit
"No Q_OBJECT in the class with the signal");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h: In instantiation of 'static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType) [with Func1 = void (QAbstractSocket::*)(QAbstractSocket::SocketError); Func2 = void (AsteriskManager::*)(QAbstractSocket::SocketError); typename QtPrivate::FunctionPointer<Func>::Object = QAbstractSocket; typename QtPrivate::FunctionPointer<Func2>::Object = AsteriskManager]':
..\OutCall2\AsteriskManager.cpp:28:86: required from here
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:221:69: error: 'Q_STATIC_ASSERT_X' was not declared in this scope
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:225:87: error: 'Q_STATIC_ASSERT_X' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
"The slot requires more arguments than the signal provides.");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:221:69: note: 'Q_STATIC_ASSERT_X' declared here, later in the translation unit
"No Q_OBJECT in the class with the signal");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:227:74: error: 'Q_STATIC_ASSERT_X' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
"Signal and slot arguments are not compatible.");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:221:69: note: 'Q_STATIC_ASSERT_X' declared here, later in the translation unit
"No Q_OBJECT in the class with the signal");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:229:106: error: 'Q_STATIC_ASSERT_X' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
"Return type of the slot is not compatible with the return type of the signal.");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:221:69: note: 'Q_STATIC_ASSERT_X' declared here, later in the translation unit
"No Q_OBJECT in the class with the signal");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h: In instantiation of 'static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType) [with Func1 = void (QTimer::*)(QTimer::QPrivateSignal); Func2 = void (AsteriskManager::*)(); typename QtPrivate::FunctionPointer<Func>::Object = QTimer; typename QtPrivate::FunctionPointer<Func2>::Object = AsteriskManager]':
..\OutCall2\AsteriskManager.cpp:29:88: required from here
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:221:69: error: 'Q_STATIC_ASSERT_X' was not declared in this scope
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:225:87: error: 'Q_STATIC_ASSERT_X' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
"The slot requires more arguments than the signal provides.");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:221:69: note: 'Q_STATIC_ASSERT_X' declared here, later in the translation unit
"No Q_OBJECT in the class with the signal");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:227:74: error: 'Q_STATIC_ASSERT_X' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
"Signal and slot arguments are not compatible.");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:221:69: note: 'Q_STATIC_ASSERT_X' declared here, later in the translation unit
"No Q_OBJECT in the class with the signal");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:229:106: error: 'Q_STATIC_ASSERT_X' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
"Return type of the slot is not compatible with the return type of the signal.");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:221:69: note: 'Q_STATIC_ASSERT_X' declared here, later in the translation unit
"No Q_OBJECT in the class with the signal");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h: In instantiation of 'static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType) [with Func1 = void (Notifier::*)(); Func2 = void (AsteriskManager::*)(); typename QtPrivate::FunctionPointer<Func>::Object = Notifier; typename QtPrivate::FunctionPointer<Func2>::Object = AsteriskManager]':
..\OutCall2\AsteriskManager.cpp:31:95: required from here
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:221:69: error: 'Q_STATIC_ASSERT_X' was not declared in this scope
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:225:87: error: 'Q_STATIC_ASSERT_X' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
"The slot requires more arguments than the signal provides.");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:221:69: note: 'Q_STATIC_ASSERT_X' declared here, later in the translation unit
"No Q_OBJECT in the class with the signal");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:227:74: error: 'Q_STATIC_ASSERT_X' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
"Signal and slot arguments are not compatible.");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:221:69: note: 'Q_STATIC_ASSERT_X' declared here, later in the translation unit
"No Q_OBJECT in the class with the signal");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:229:106: error: 'Q_STATIC_ASSERT_X' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
"Return type of the slot is not compatible with the return type of the signal.");
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qobject.h:221:69: note: 'Q_STATIC_ASSERT_X' declared here, later in the translation unit
"No Q_OBJECT in the class with the signal");
^
In file included from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qlist.h:40:0,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtCore/qmap.h:38,
from ..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include\QtCore/QMap:1,
from ..\OutCall2\AsteriskManager.h:4,
from ..\OutCall2\AsteriskManager.cpp:1:
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qarraydata.h: In instantiation of 'static QTypedArrayData<T>* QTypedArrayData<T>::sharedNull() [with T = QPoint]':
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qvector.h:64:58: required from 'QVector<T>::QVector() [with T = QPoint]'
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtGui/qpolygon.h:52:23: required from here
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qarraydata.h:242:70: error: 'Q_STATIC_ASSERT' was not declared in this scope
Q_STATIC_ASSERT(sizeof(QTypedArrayData) == sizeof(QArrayData));
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qarraydata.h: In instantiation of 'static QTypedArrayData<T>* QTypedArrayData<T>::allocate(size_t, QArrayData::AllocationOptions) [with T = QPoint; size_t = unsigned int; QArrayData::AllocationOptions = QFlags<QArrayData::AllocationOption>]':
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qvector.h:332:42: required from 'QVector<T>::QVector(const QVector<T>&) [with T = QPoint]'
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtGui/qpolygon.h:55:59: required from here
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qarraydata.h:214:70: error: 'Q_STATIC_ASSERT' was not declared in this scope
Q_STATIC_ASSERT(sizeof(QTypedArrayData) == sizeof(QArrayData));
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qarraydata.h: In instantiation of 'static QTypedArrayData<T>* QTypedArrayData<T>::sharedNull() [with T = QPointF]':
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qvector.h:64:58: required from 'QVector<T>::QVector() [with T = QPointF]'
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtGui/qpolygon.h:126:24: required from here
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qarraydata.h:242:70: error: 'Q_STATIC_ASSERT' was not declared in this scope
Q_STATIC_ASSERT(sizeof(QTypedArrayData) == sizeof(QArrayData));
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qarraydata.h: In instantiation of 'static QTypedArrayData<T>* QTypedArrayData<T>::allocate(size_t, QArrayData::AllocationOptions) [with T = QPointF; size_t = unsigned int; QArrayData::AllocationOptions = QFlags<QArrayData::AllocationOption>]':
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qvector.h:332:42: required from 'QVector<T>::QVector(const QVector<T>&) [with T = QPointF]'
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtGui/qpolygon.h:129:62: required from here
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qarraydata.h:214:70: error: 'Q_STATIC_ASSERT' was not declared in this scope
Q_STATIC_ASSERT(sizeof(QTypedArrayData) == sizeof(QArrayData));
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qarraydata.h: In instantiation of 'static void QTypedArrayData<T>::deallocate(QArrayData*) [with T = QPoint]':
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qvector.h:492:23: required from 'void QVector<T>::freeData(QVector<T>::Data*) [with T = QPoint; QVector<T>::Data = QTypedArrayData<QPoint>]'
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qvector.h:68:56: required from 'QVector<T>::~QVector() [with T = QPoint]'
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtGui/qpolygon.h:52:23: required from here
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qarraydata.h:221:70: error: 'Q_STATIC_ASSERT' was not declared in this scope
Q_STATIC_ASSERT(sizeof(QTypedArrayData) == sizeof(QArrayData));
^
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qarraydata.h: In instantiation of 'static void QTypedArrayData<T>::deallocate(QArrayData*) [with T = QPointF]':
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qvector.h:492:23: required from 'void QVector<T>::freeData(QVector<T>::Data*) [with T = QPointF; QVector<T>::Data = QTypedArrayData<QPointF>]'
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qvector.h:68:56: required from 'QVector<T>::~QVector() [with T = QPointF]'
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtGui/qpolygon.h:126:24: required from here
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qarraydata.h:221:70: error: 'Q_STATIC_ASSERT' was not declared in this scope
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qarraydata.h: In instantiation of 'static QTypedArrayData<T>* QTypedArrayData<T>::unsharableEmpty() [with T = QPoint]':
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qvector.h:352:39: required from 'void QVector<T>::detach() [with T = QPoint]'
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qvector.h:122:31: required from 'T* QVector<T>::data() [with T = QPoint]'
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qvector.h:402:15: required from 'T& QVector<T>::operator[](int) [with T = QPoint]'
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtGui/qpolygon.h:107:16: required from here
..\..\..\..\Qt\Qt5.5.0\5.5\mingw492_32\include/QtCore/qarraydata.h:254:70: error: 'Q_STATIC_ASSERT' was not declared in this scope
Q_STATIC_ASSERT(sizeof(QTypedArrayData) == sizeof(QArrayData));
^
mingw32-make[1]: Leaving directory 'C:/Users/Roberto/Documents/build-OutCALL-Desktop_Qt_5_5_0_MinGW_32bit-Debug'
makefile:34: recipe for target 'debug' failed
mingw32-make[1]: *** [debug/AsteriskManager.o] Error 1
mingw32-make: *** [debug] Error 2
13:40:07: The process "C:\Qt\Qt5.5.0\Tools\mingw492_32\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project OutCALL (kit: Desktop Qt 5.5.0 MinGW 32bit)
When executing step "Make"
13:40:07: Elapsed time: 00:06.
De: Mirza Dedic [mailto:[email protected]]
Enviada em: quinta-feira, 16 de março de 2017 04:03
Para: bicomsystems/outcall2 <[email protected]>
Cc: rxsantos <[email protected]>; Author <[email protected]>
Assunto: Re: [bicomsystems/outcall2] Language translation (#6)
You didn't upload the image correctly.
Or you can just paste the errors.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#6 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AHGbHG1O8wrUB8zu0OQlm2n7Tb1wKOkfks5rmN6ngaJpZM4MFvgd> . <https://github.com/notifications/beacon/AHGbHDeoDoibasK4U_SMcQKmQ-DeFoOYks5rmN6ngaJpZM4MFvgd.gif>
|
De: Mirza Dedic [mailto:[email protected]]
Enviada em: quinta-feira, 16 de março de 2017 04:03
Para: bicomsystems/outcall2 <[email protected]>
Cc: rxsantos <[email protected]>; Author <[email protected]>
Assunto: Re: [bicomsystems/outcall2] Language translation (#6)
You didn't upload the image correctly.
Or you can just paste the errors.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#6 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AHGbHG1O8wrUB8zu0OQlm2n7Tb1wKOkfks5rmN6ngaJpZM4MFvgd> . <https://github.com/notifications/beacon/AHGbHDeoDoibasK4U_SMcQKmQ-DeFoOYks5rmN6ngaJpZM4MFvgd.gif>
|
You are not using the Visual Studio 2010 compiler, but the MinGW. I did not test this code with MinGW. |
Ok, I try the Visual Studio 2010
2017-03-17 6:56 GMT-03:00 Mirza Dedic <[email protected]>:
… You are not using the Visual Studio 2010 compiler, but the MinGW.
You either downloaded the wrong Qt version or set the wrong compiler.
I did not test this code with MinGW.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHGbHI8R8CVUETkMrpZzOyZa3gPWzkUaks5rmljdgaJpZM4MFvgd>
.
|
Hi Mizra, I was got it to compile with Visual Studio 2010. It worked with
some caveats.
The add contact option is not opening Outlook contacts.
The outlook helper not found error appears.
Windows icons do not appear, quickstart, uninstall and desktop.
Anyway, I'll use your executable.
The translation I made, works on 95% of the program.
It is not working in OutCALL.cpp. The tr () function is applied to the
outCALL.cpp file but is not working.
Attached is a complete and revised translation file for Brazilian
Portuguese (pt-br) and a QTLinguist file to add to Github.
Thank you for your help.
2017-03-17 17:45 GMT-03:00 Roberto Xavier dos Santos <[email protected]>:
… Ok, I try the Visual Studio 2010
2017-03-17 6:56 GMT-03:00 Mirza Dedic ***@***.***>:
> You are not using the Visual Studio 2010 compiler, but the MinGW.
> You either downloaded the wrong Qt version or set the wrong compiler.
>
> I did not test this code with MinGW.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#6 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AHGbHI8R8CVUETkMrpZzOyZa3gPWzkUaks5rmljdgaJpZM4MFvgd>
> .
>
|
2017-03-21 0:50 GMT-03:00 Roberto Xavier dos Santos <[email protected]>:
… Hi Mizra, I was got it to compile with Visual Studio 2010. It worked with
some caveats.
The add contact option is not opening Outlook contacts.
The outlook helper not found error appears.
Windows icons do not appear, quickstart, uninstall and desktop.
Anyway, I'll use your executable.
The translation I made, works on 95% of the program.
It is not working in OutCALL.cpp. The tr () function is applied to the
outCALL.cpp file but is not working.
Attached is a complete and revised translation file for Brazilian
Portuguese (pt-br) and a QTLinguist file to add to Github.
Thank you for your help.
2017-03-17 17:45 GMT-03:00 Roberto Xavier dos Santos ***@***.***>:
> Ok, I try the Visual Studio 2010
>
> 2017-03-17 6:56 GMT-03:00 Mirza Dedic ***@***.***>:
>
>> You are not using the Visual Studio 2010 compiler, but the MinGW.
>> You either downloaded the wrong Qt version or set the wrong compiler.
>>
>> I did not test this code with MinGW.
>>
>> —
>> You are receiving this because you authored the thread.
>> Reply to this email directly, view it on GitHub
>> <#6 (comment)>,
>> or mute the thread
>> <https://github.com/notifications/unsubscribe-auth/AHGbHI8R8CVUETkMrpZzOyZa3gPWzkUaks5rmljdgaJpZM4MFvgd>
>> .
>>
>
>
|
Hi, I would translate to portuguese brazil. Do you have any version 2.0 templates so that I can do the translation?
The text was updated successfully, but these errors were encountered: