本文整理汇总了C++中clearMessages函数的典型用法代码示例。如果您正苦于以下问题:C++ clearMessages函数的具体用法?C++ clearMessages怎么用?C++ clearMessages使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了clearMessages函数的17个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: qDebug
void NfcManager::startEventProcessing() {
qDebug() << "XXXX starting event processing...";
_future = new QFuture<void>;
_watcher = new QFutureWatcher<void>;
*_future = QtConcurrent::run(_workerInstance, &NfcWorker::startEventLoop);
_watcher->setFuture(*_future);
QObject::connect(_watcher, SIGNAL(finished()), this, SLOT(workerStopped()));
QObject::connect(_workerInstance, SIGNAL(message(QVariant)), this, SLOT(message(QVariant)), Qt::QueuedConnection);
QObject::connect(_workerInstance, SIGNAL(clearMessages()), this, SLOT(clearMessages()), Qt::QueuedConnection);
qDebug() << "XXXX startEventProcessing - event loop started";
}
开发者ID:jwoolcox,项目名称:NfcTool,代码行数:11,代码来源:NfcManager.cpp
示例2: clearMessages
void LLFloaterMarketplaceValidation::onOpen(/*const LLSD& key*/)
{
// Clear the messages
clearMessages();
// Get the folder UUID to validate. Use the whole marketplace listing if none provided.
LLUUID cat_id(mKey.asUUID());
if (cat_id.isNull())
{
cat_id = gInventory.findCategoryUUIDForType(LLFolderType::FT_MARKETPLACE_LISTINGS, false);
}
// Validates the folder
if (cat_id.notNull())
{
LLViewerInventoryCategory* cat = gInventory.getCategory(cat_id);
validate_marketplacelistings(cat, boost::bind(&LLFloaterMarketplaceValidation::appendMessage, this, _1, _2, _3), false);
}
// Handle the listing folder being processed
handleCurrentListing();
// Dump result to the editor panel
if (mEditor)
{
mEditor->setValue(LLSD());
if (mMessages.empty())
{
// Display a no error message
mEditor->appendText(LLTrans::getString("Marketplace Validation No Error"), false, false);
}
else
{
// Print out all the messages to the panel
message_list_t::iterator mCurrentLine = mMessages.begin();
bool new_line = false;
while (mCurrentLine != mMessages.end())
{
// Errors are printed in bold, other messages in normal font
LLStyleSP style(new LLStyle);
style->setColor(mEditor->getReadOnlyFgColor());
style->mBold = mCurrentLine->mErrorLevel == LLError::LEVEL_ERROR;
mEditor->appendText(mCurrentLine->mMessage, false, new_line, style);
new_line = true;
mCurrentLine++;
}
}
}
// We don't need the messages anymore
clearMessages();
}
开发者ID:HanHeld,项目名称:SingularityViewerFeb2016,代码行数:51,代码来源:llfloatermarketplacelistings.cpp
示例3: clearMessages
void IComponent::activate() {
if(_isActivated) return;
_isActivated = true;
clearMessages();
onActivate();
}
开发者ID:franaisa,项目名称:Gloom,代码行数:7,代码来源:Component.cpp
示例4: clearMessages
// delete graphics only related to the level in specific
void Graphics::closeLevelGFX()
{
clearMessages();
if (bg != NULL)
{
delete bg;
bg = NULL;
}
for (int i = bgObjects.size() - 1; i >= 0; i--)
{
if (bgObjects[i].first != NULL)
{
delete bgObjects[i].first;
bgObjects[i].first = NULL;
}
bgObjects.pop_back();
}
for (int i = particles.size() - 1; i >= 0; i--)
{
if (particles[i].first != NULL)
{
delete particles[i].first;
particles[i].first = NULL;
}
particles.pop_back();
}
}
开发者ID:Frozelar,项目名称:Ice-Age,代码行数:28,代码来源:Graphics.cpp
示例5: while
int packagesPage::resetLists()
{
packagesListWidget->blockSignals(true);
reposListWidget->blockSignals(true);
while(packagesListWidget->count() > 0)
{
packagesListWidget->takeItem(0);
}
while(reposListWidget->count() > 0)
{
reposListWidget->takeItem(0);
}
emit clearMessages();
packagesListWidget->blockSignals(false);
reposListWidget->blockSignals(false);
packages.clear();
packagesList.clear();
statuses.clear();
initAll();
return 0;
}
开发者ID:aaly,项目名称:Mesk-Installer,代码行数:26,代码来源:packagesPage.cpp
示例6: setErrorString
bool MIPSamplingRateConverter::pull(const MIPComponentChain &chain, int64_t iteration, MIPMessage **pMsg)
{
if (!m_init)
{
setErrorString(MIPSAMPLINGRATECONVERTER_ERRSTR_NOTINIT);
return false;
}
if (m_prevIteration != iteration)
{
clearMessages();
m_prevIteration = iteration;
}
if (m_msgIt == m_messages.end())
{
*pMsg = 0;
m_msgIt = m_messages.begin();
}
else
{
*pMsg = *m_msgIt;
m_msgIt++;
}
return true;
}
开发者ID:di3online,项目名称:emiplib,代码行数:26,代码来源:mipsamplingrateconverter.cpp
示例7: setErrorString
bool MIPRTPL16Encoder::pull(const MIPComponentChain &chain, int64_t iteration, MIPMessage **pMsg)
{
if (!m_init)
{
setErrorString(MIPRTPL16ENCODER_ERRSTR_NOTINIT);
return false;
}
if (m_prevIteration != iteration)
{
m_prevIteration = iteration;
clearMessages();
}
if (m_msgIt == m_messages.end())
{
m_msgIt = m_messages.begin();
*pMsg = 0;
}
else
{
*pMsg = *m_msgIt;
m_msgIt++;
}
return true;
}
开发者ID:di3online,项目名称:emiplib,代码行数:26,代码来源:miprtpl16encoder.cpp
示例8: setErrorString
bool MIPMediaBuffer::pull(const MIPComponentChain &chain, int64_t iteration, MIPMessage **pMsg)
{
//std::cout << "I " << iteration << " MIPMediaBuffer::pull" << (void *)this << std::endl;
if (!m_init)
{
setErrorString(MIPMEDIABUFFER_ERRSTR_NOTINIT);
return false;
}
if (iteration != m_prevIteration)
{
m_prevIteration = iteration;
clearMessages();
buildOutputMessages();
}
if (m_msgIt == m_messages.end())
{
*pMsg = 0;
m_msgIt = m_messages.begin();
}
else
{
*pMsg = *m_msgIt;
m_msgIt++;
}
return true;
}
开发者ID:di3online,项目名称:emiplib,代码行数:29,代码来源:mipmediabuffer.cpp
示例9: clearMessages
void InspectorConsoleAgent::reset()
{
ErrorString error;
clearMessages(&error);
m_times.clear();
m_counts.clear();
}
开发者ID:chunywang,项目名称:blink-crosswalk,代码行数:7,代码来源:InspectorConsoleAgent.cpp
示例10: startService
void CVSService::slotBrowseLog()
{
startService();
if (!m_defaultFile.isEmpty())
{
if (m_defaultFile.startsWith(m_repositoryPath))
{
QString file = m_defaultFile.remove(m_repositoryPath);
if (m_repository && !m_appId.isEmpty() )
{
emit clearMessages();
emit showMessage(i18n("Showing CVS log...") + "\n", false);
m_files += file;
m_job = m_cvsService->log(file);
m_cvsCommand = "log";
m_cvsJob = new CvsJob_stub(m_job.app(), m_job.obj());
connectDCOPSignal(m_job.app(), m_job.obj(), "jobExited(bool, int)", "slotJobExited(bool, int)", true);
connectDCOPSignal(m_job.app(), m_job.obj(), "receivedStdout(QString)", "slotReceivedStdout(QString)", true);
connectDCOPSignal(m_job.app(), m_job.obj(), "receivedStderr(QString)", "slotReceivedStderr(QString)", true);
m_cvsJob->execute();
}
} else
{
notInRepository();
}
}
}
开发者ID:serghei,项目名称:kde3-kdewebdev,代码行数:28,代码来源:cvsservice.cpp
示例11: clearMessages
void MIPSamplingRateConverter::cleanUp()
{
if (!m_init)
return;
clearMessages();
m_init = false;
}
开发者ID:di3online,项目名称:emiplib,代码行数:8,代码来源:mipsamplingrateconverter.cpp
示例12: clearMessages
void InspectorConsoleAgent::reset()
{
ErrorString unused;
clearMessages(unused);
m_times.clear();
m_counts.clear();
}
开发者ID:Comcast,项目名称:WebKitForWayland,代码行数:8,代码来源:InspectorConsoleAgent.cpp
示例13: clearMessages
void InspectorConsoleAgent::addMessageToConsole(MessageSource source, MessageType type, MessageLevel level, const String& message, PassRefPtrWillBeRawPtr<ScriptCallStack> callStack, unsigned long requestIdentifier)
{
if (type == ClearMessageType) {
ErrorString error;
clearMessages(&error);
}
addConsoleMessage(adoptPtr(new ConsoleMessage(!isWorkerAgent(), source, type, level, message, callStack, requestIdentifier)));
}
开发者ID:Drakey83,项目名称:steamlink-sdk,代码行数:9,代码来源:InspectorConsoleAgent.cpp
示例14: clearMessages
void BaseResponse::addSuccessMessage()
{
if (_messages.size() > 0)
{
clearMessages();
}
_messages.push_back("Success");
}
开发者ID:andiyuniar,项目名称:SpiderBite,代码行数:9,代码来源:BaseResponse.cpp
示例15: connect
int MPF::setGroup(pagesGroup* grp)
{
if(groups.indexOf(grp) != -1 )
{
//if current group is set disconenct it....
if(currentGroup != -1)
{
QObject::disconnect(groups.at(currentGroup), 0, 0, 0);
}
if(listGridLayout->itemAt(0))
{
//listGridLayout->removeItem(groups.at(currentGroup)->listGridLayout);
//QLayoutItem * item = listGridLayout->takeAt(0);
//delete item;
}
if(currentGroup != -1)
{
groups.at(currentGroup)->hideList();
////groups.at(currentGroup)->listGridLayout->setParent(groups.at(currentGroup));
//QLayoutItem* item = listGridLayout->takeAt(0);
//item->layout()->widget()->setHidden(true);
//listGridLayout->itemAt(0)->layout()->widget()->setHidden(true);
////groups.at(currentGroup)->setHidden(true);
//listGridLayout->removeItem(listGridLayout->itemAt(0));
//groups.at(currentGroup)->listGridLayout->setParent(groups.at(currentGroup));
//groups.at(currentGroup)->setHidden(true);
////listGridLayout->update();
//groups.at(currentGroup)->setHidden(true);
//groups.at(currentGroup)->listGridLayout->setParent(NULL);
//groups.at(currentGroup)->setHidden(true);
}
currentGroup = groups.indexOf(grp);
grp->showList();
// set list and messages widgets ...
grp->listGridLayout->setParent(NULL);
listGridLayout->addLayout(grp->listGridLayout);
// connect to groups signals
connect(grp, SIGNAL(newMessage(QString,int, int, pagesGroup*)), this, SLOT(addMessage(QString,int)), Qt::QueuedConnection);
connect(grp, SIGNAL(clearPageMessages()), this, SLOT(clearMessages()), Qt::QueuedConnection);
connect(grp, SIGNAL(pageReady(bool, int, pagesGroup*)), nextPushButton, SLOT(setEnabled(bool)));
connect(grp, SIGNAL(pageReady(bool, int, pagesGroup*)), nextPushButton, SLOT(setFocus()));
//prevPage();
changePage(0);
}
else
{
return 1;
开发者ID:aaly,项目名称:MPF,代码行数:52,代码来源:MPF.cpp
示例16: setWindowTitle
void LogViewerWidget::setupGUI() {
setWindowTitle(tr("Log Viewer"));
_mainLayout = new QVBoxLayout(this);
_controls_layout = new QHBoxLayout();
_mainLayout->addLayout(_controls_layout);
_filter_label = new QLabel(tr("&Filter:"), this);
_controls_layout->addWidget(_filter_label);
_filter_line_edit = new QLineEdit(this);
_filter_line_edit->setPlaceholderText(tr("Start typing here to filter log messages"));
_filter_label->setBuddy(_filter_line_edit);
_controls_layout->addWidget(_filter_line_edit);
_cbLogLevel = new QComboBox(this);
_cbLogLevel->addItem("Debug", static_cast<int>(cgt::Debug));
_cbLogLevel->addItem("Info", static_cast<int>(cgt::Info));
_cbLogLevel->addItem("Warning", static_cast<int>(cgt::Warning));
_cbLogLevel->addItem("Error", static_cast<int>(cgt::Error));
_cbLogLevel->addItem("Fatal", static_cast<int>(cgt::Fatal));
_cbLogLevel->setCurrentIndex(1);
QLabel* lblLogLevel = new QLabel("Minimum Log Level:");
lblLogLevel->setBuddy(_cbLogLevel);
_controls_layout->addWidget(lblLogLevel);
_controls_layout->addWidget(_cbLogLevel);
_controls_layout->addStretch();
_clear_button = new QPushButton(tr("&Clear"), this);
_controls_layout->addWidget(_clear_button);
_logDisplay = new QTextEdit(this);
_logDisplay->setReadOnly(true);
_mainLayout->addWidget(_logDisplay);
// Use the system's default monospace font at the default size in the log viewer
QFont monoFont = QFont("Monospace");
monoFont.setStyleHint(QFont::TypeWriter);
monoFont.setPointSize(QFont().pointSize() + 1);
_logDisplay->document()->setDefaultFont(monoFont);
_logHighlighter = new LogHighlighter(_logDisplay);
connect(_clear_button, SIGNAL(clicked()), this, SLOT(clearMessages()));
connect(_filter_line_edit, SIGNAL(textEdited(const QString&)), this, SLOT(filterLogMessages(const QString&)));
connect(_cbLogLevel, SIGNAL(currentIndexChanged(int)), this, SLOT(onLogLevelChanged(int)));
}
开发者ID:tusharuiit,项目名称:2014-2015_HiwiMedicalXTTVisualization,代码行数:52,代码来源:logviewerwidget.cpp
示例17: setErrorString
bool MIPRTPULawEncoder::push(const MIPComponentChain &chain, int64_t iteration, MIPMessage *pMsg)
{
if (!m_init)
{
setErrorString(MIPRTPULAWENCODER_ERRSTR_NOTINIT);
return false;
}
if (m_prevIteration != iteration)
{
m_prevIteration = iteration;
clearMessages();
}
if (!(pMsg->getMessageType() == MIPMESSAGE_TYPE_AUDIO_ENCODED && pMsg->getMessageSubtype() == MIPENCODEDAUDIOMESSAGE_TYPE_ULAW))
{
setErrorString(MIPRTPULAWENCODER_ERRSTR_BADMESSAGE);
return false;
}
MIPEncodedAudioMessage *pEncMsg = (MIPEncodedAudioMessage *)pMsg;
int sampRate = pEncMsg->getSamplingRate();
int channels = pEncMsg->getNumberOfChannels();
if (sampRate != 8000)
{
setErrorString(MIPRTPULAWENCODER_ERRSTR_BADSAMPLINGRATE);
return false;
}
if (channels != 1)
{
setErrorString(MIPRTPULAWENCODER_ERRSTR_BADCHANNELS);
return false;
}
const void *pData = pEncMsg->getData();
bool marker = false;
size_t length = pEncMsg->getDataLength();
uint8_t *pPayload = new uint8_t [length];
memcpy(pPayload,pData,length);
MIPRTPSendMessage *pNewMsg;
pNewMsg = new MIPRTPSendMessage(pPayload,length,getPayloadType(),marker,pEncMsg->getNumberOfFrames());
pNewMsg->setSamplingInstant(pEncMsg->getTime());
m_messages.push_back(pNewMsg);
m_msgIt = m_messages.begin();
return true;
}
开发者ID:di3online,项目名称:emiplib,代码行数:52,代码来源:miprtpulawencoder.cpp
注:本文中的clearMessages函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论