예제 #1
0
void QApplicationConfig::request(pb::ContainerType type)
{
    m_tx.set_type(type);

#ifdef QT_DEBUG
    std::string s;
    gpb::TextFormat::PrintToString(m_tx, &s);
    qDebug() << "request:" << QString::fromStdString(s);
#endif

    sendConfigMessage(QByteArray(m_tx.SerializeAsString().c_str(), m_tx.ByteSize()));
    m_tx.Clear();
}
예제 #2
0
void ConfigBase::sendRetrieveApplication(Container &tx)
{
    sendConfigMessage(MT_RETRIEVE_APPLICATION, tx);
}
예제 #3
0
void ConfigBase::sendListApplications()
{
    Container &tx = m_configTx;
    sendConfigMessage(MT_LIST_APPLICATIONS, tx);
}