本文整理汇总了C++中NotifyEvent函数的典型用法代码示例。如果您正苦于以下问题:C++ NotifyEvent函数的具体用法?C++ NotifyEvent怎么用?C++ NotifyEvent使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了NotifyEvent函数的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: debugLogA
/** Return true on success, false on error. */
bool FacebookProto::NegotiateConnection()
{
debugLogA("*** Negotiating connection with Facebook");
ptrA username(getStringA(FACEBOOK_KEY_LOGIN));
if (!username || !mir_strlen(username)) {
NotifyEvent(m_tszUserName, TranslateT("Please enter a username."), NULL, FACEBOOK_EVENT_CLIENT);
return false;
}
ptrA password(getStringA(FACEBOOK_KEY_PASS));
if (!password || !*password) {
NotifyEvent(m_tszUserName, TranslateT("Please enter a password."), NULL, FACEBOOK_EVENT_CLIENT);
return false;
}
password = mir_utf8encode(password);
// Refresh last time of feeds update
facy.last_feeds_update_ = ::time(NULL);
// Generate random clientid for this connection
facy.chat_clientid_ = utils::text::rand_string(8, "0123456789abcdef", &facy.random_);
// Create default group for new contacts
if (m_tszDefaultGroup)
Clist_CreateGroup(0, m_tszDefaultGroup);
return facy.login(username, password);
}
开发者ID:kxepal,项目名称:miranda-ng,代码行数:31,代码来源:connection.cpp
示例2: NotifyEvent
//
// Inform accessibility a new line has been selected and/or a previously
// selected line is being unselected
//
void
KeyViewAx::SetCurrentLine(int line)
{
// Only send selection remove notification if a line was
// previously selected
if (mLastId != -1)
{
NotifyEvent(wxACC_EVENT_OBJECT_SELECTIONREMOVE,
mView,
wxOBJID_CLIENT,
mLastId);
}
// Nothing is now selected
mLastId = -1;
// Just clearing selection
if (line != wxNOT_FOUND)
{
// Convert line number to childId
LineToId(line, mLastId);
// Send notifications that the line has focus
NotifyEvent(wxACC_EVENT_OBJECT_FOCUS,
mView,
wxOBJID_CLIENT,
mLastId);
// And is selected
NotifyEvent(wxACC_EVENT_OBJECT_SELECTION,
mView,
wxOBJID_CLIENT,
mLastId);
}
}
开发者ID:tuanmasterit,项目名称:audacity,代码行数:39,代码来源:KeyView.cpp
示例3: NotifyEvent
// Completes a frame-step operation.
HRESULT EVRCustomPresenter::CompleteFrameStep(IMFSample *pSample)
{
HRESULT hr = S_OK;
MFTIME hnsSampleTime = 0;
MFTIME hnsSystemTime = 0;
// Update our state.
m_FrameStep.state = FRAMESTEP_COMPLETE;
m_FrameStep.pSampleNoRef = NULL;
// Notify the EVR that the frame-step is complete.
NotifyEvent(EC_STEP_COMPLETE, FALSE, 0); // FALSE = completed (not cancelled)
// If we are scrubbing (rate == 0), also send the "scrub time" event.
if (IsScrubbing())
{
// Get the time stamp from the sample.
hr = pSample->GetSampleTime(&hnsSampleTime);
if (FAILED(hr))
{
// No time stamp. Use the current presentation time.
if (m_pClock)
{
hr = m_pClock->GetCorrelatedTime(0, &hnsSampleTime, &hnsSystemTime);
}
hr = S_OK; // Not an error condition.
}
NotifyEvent(EC_SCRUB_TIME, LODWORD(hnsSampleTime), HIDWORD(hnsSampleTime));
}
return hr;
}
开发者ID:DieBagger,项目名称:MediaPortal-2,代码行数:34,代码来源:FrameStepping.cpp
示例4: NotifyEvent
void GridAx::TableUpdated()
{
NotifyEvent(wxACC_EVENT_OBJECT_REORDER,
mGrid->GetGridWindow(),
wxOBJID_CLIENT,
0);
}
开发者ID:ducknoir,项目名称:audacity,代码行数:7,代码来源:Grid.cpp
示例5: strlen
void vfeSession::AppendStreamMessage (MessageType type, const char *message, bool chompLF)
{
// messages may have embedded LF's, in which case we split them at
// the LF into seperate entries. however if chompLF is true, and the
// message ends with an LF, we remove it (but only one). if chompLF
// is false and the message ends with an LF, *or* there are LF's left
// after we chomp one, we must append a blank line for each one.
const char *begin = message ;
const char *end = begin + strlen (message) - 1;
boost::mutex::scoped_lock lock(m_MessageMutex);
for (const char *s = begin ; s <= end ; s++)
{
if (*s == '\n')
{
if (chompLF && s == end)
break ;
m_ConsoleQueue.push (MessageBase (*this, type, string (begin, s - begin)));
begin = s + 1 ;
}
}
m_ConsoleQueue.push (MessageBase (*this, type, string (begin)));
if (m_MaxConsoleMessages != -1)
while (m_ConsoleQueue.size() > m_MaxConsoleMessages)
m_ConsoleQueue.pop();
NotifyEvent(stStreamMessage);
}
开发者ID:fourks,项目名称:povray,代码行数:29,代码来源:vfesession.cpp
示例6: NotifyEvent
void vfeSession::SetSucceeded (bool ok)
{
if (m_Succeeded == ok)
return;
m_Succeeded = ok;
NotifyEvent(stSucceeded);
}
开发者ID:fourks,项目名称:povray,代码行数:7,代码来源:vfesession.cpp
示例7: NotifyEvent
//------------------------------------------------------------------------
void SUIElementLuaCallback::OnUIEventEx( IUIElement* pSender, const char* fscommand, const SUIArguments& args, void* pUserData )
{
SUIArguments luaArgs;
luaArgs.AddArgument(fscommand);
luaArgs.AddArguments(args);
NotifyEvent(SUILuaCallbackInfo<IUIElement>::CreateInfo(pSender, "OnUIEventEx"), luaArgs);
}
开发者ID:aronarts,项目名称:FireNET,代码行数:8,代码来源:ScriptBind_UIAction.cpp
示例8: NotifyEvent
// Performs end-of-stream actions if the end of stream flag was set.
HRESULT EVRCustomPresenter::CheckEndOfStream()
{
if (!m_bEndStreaming)
{
// The EVR did not send the MFVP_MESSAGE_ENDOFSTREAM message.
return S_OK;
}
if (m_bSampleNotify)
{
// The mixer still has input.
return S_OK;
}
if (m_SamplePool.AreSamplesPending())
{
// Samples are still scheduled for rendering.
return S_OK;
}
// Everything is complete. Now we can tell the EVR that we are done.
NotifyEvent(EC_COMPLETE, (LONG_PTR)S_OK, 0);
m_bEndStreaming = FALSE;
return S_OK;
}
开发者ID:MediaPortal,项目名称:MediaPortal-2,代码行数:27,代码来源:MessageHandlers.cpp
示例9: mir_a2t_cp
void WhatsAppProto::NotifyEvent(const string& title, const string& info, MCONTACT contact, DWORD flags, TCHAR* url)
{
TCHAR *rawTitle = mir_a2t_cp(title.c_str(), CP_UTF8);
TCHAR *rawInfo = mir_a2t_cp(info.c_str(), CP_UTF8);
NotifyEvent(rawTitle, rawInfo, contact, flags, url);
mir_free(rawTitle);
mir_free(rawInfo);
}
开发者ID:Seldom,项目名称:miranda-ng,代码行数:8,代码来源:proto.cpp
示例10: lock
// Clears all messages from the status message queue.
void vfeSession::ClearStatusMessages()
{
boost::mutex::scoped_lock lock(m_MessageMutex);
while (m_StatusQueue.empty() == false)
m_StatusQueue.pop();
NotifyEvent(stStatusMessagesCleared);
}
开发者ID:fourks,项目名称:povray,代码行数:9,代码来源:vfesession.cpp
示例11: RenderStopped
void vfeSession::StateChanged (pov_frontend::State NewState)
{
if (NewState == kReady || NewState == kStopping)
if (m_BackendState > kReady)
RenderStopped () ;
if (NewState == kRendering)
m_StartTime = GetTimestamp();
m_BackendState = NewState ;
NotifyEvent(stBackendStateChanged);
}
开发者ID:fourks,项目名称:povray,代码行数:10,代码来源:vfesession.cpp
示例12: NotifyEvent
// Changes focus to a specified track
void TrackPanelAx::SetFocus( Track *track )
{
#if wxUSE_ACCESSIBILITY
if( mFocusedTrack != NULL )
{
NotifyEvent( wxACC_EVENT_OBJECT_SELECTIONREMOVE,
mTrackPanel,
wxOBJID_CLIENT,
TrackNum( mFocusedTrack ) );
}
#endif
if( track == NULL )
{
TrackListIterator iter( mTrackPanel->mTracks );
track = iter.First();
}
mFocusedTrack = track;
#if wxUSE_ACCESSIBILITY
if( mFocusedTrack != NULL )
{
int num = TrackNum( mFocusedTrack );
NotifyEvent( wxACC_EVENT_OBJECT_FOCUS,
mTrackPanel,
wxOBJID_CLIENT,
num );
if( mFocusedTrack->GetSelected() )
{
NotifyEvent( wxACC_EVENT_OBJECT_SELECTION,
mTrackPanel,
wxOBJID_CLIENT,
num );
}
}
#endif
return;
}
开发者ID:dot-Sean,项目名称:audio,代码行数:43,代码来源:TrackPanelAx.cpp
示例13: GetFocus
void TrackPanelAx::Updated()
{
#if wxUSE_ACCESSIBILITY
Track *t = GetFocus();
NotifyEvent(wxACC_EVENT_OBJECT_NAMECHANGE,
mTrackPanel,
wxOBJID_CLIENT,
TrackNum(t));
SetFocus(t);
#endif
}
开发者ID:dot-Sean,项目名称:audio,代码行数:11,代码来源:TrackPanelAx.cpp
示例14: NotifyEvent
int CAudioRenderer::SetEOS()
{
if (m_bEOS) {
return S_OK;
}
m_bEOS = TRUE;
NotifyEvent(EVENT_AUDIO_EOS, 0, 0, NULL);
return S_OK;
}
开发者ID:bigbugbb,项目名称:video-player-infrastructure,代码行数:11,代码来源:AudioRenderer.cpp
示例15: NotifyEvent
/**
* @brief
* Notify function to invoke watermark event on portID if
* watermark type in http component is the same as the
* watermark type registered for.
*
* @param pHTTPSourceMMIHelper
* @param portID
* @param pClientData
*
* @return bool
*/
bool HTTPSourceMMIExtensionEventHandler::HTTPBufferingEventManager::NotifyBufferingEvent(
HTTPSourceMMIHelper *pHTTPSourceMMIHelper,
const uint32 portID,
void *pClientData)
{
return NotifyEvent(
pHTTPSourceMMIHelper,
portID,
QOMX_HTTP_IndexStreamingConfigWaterMarkStatus,
pClientData);
}
开发者ID:xingrz,项目名称:android_tools_leeco_msm8996,代码行数:23,代码来源:HTTPSourceMMIExtensionEventHandler.cpp
示例16: GetFocus
void TrackPanelAx::Updated()
{
#if wxUSE_ACCESSIBILITY
Track *t = GetFocus();
// logically, this should be an OBJECT_NAMECHANGE event, but Window eyes 9.1
// does not read out the name with this event type, hence use OBJECT_FOCUS.
NotifyEvent(wxACC_EVENT_OBJECT_FOCUS,
mTrackPanel,
wxOBJID_CLIENT,
TrackNum(t));
#endif
}
开发者ID:MartynShaw,项目名称:audacity,代码行数:13,代码来源:TrackPanelAx.cpp
示例17: AppendStreamMessage
// This method allows your platform code to perform platform-specific action
// when a render stops (whether it succeeds or fails). A good example would
// be to shrink the heap. Be aware that it is called in the context of the
// worker thread, and that therefore on windowing systems where thread context
// is relevent to making certain UI calls, it may not be possible to perform
// certain UI actions here. For most platforms the default implementation
// should be sufficient.
void vfeSession::RenderStopped (void)
{
// TODO: we should check the state of the various stream output options
// before writing to the streams
if (m_Succeeded)
{
AppendStreamMessage (vfeSession::mUnclassified, BRANCH_NAME " finished");
AppendStreamMessage (vfeSession::mDivider, "");
}
else
{
AppendStreamMessage (vfeSession::mUnclassified, m_RenderCancelled ? "Render cancelled by user" : "Render failed");
AppendStreamMessage (vfeSession::mDivider, "");
}
ShrinkHeap();
NotifyEvent(stRenderShutdown);
}
开发者ID:UberPOV,项目名称:UberPOV,代码行数:24,代码来源:vfecontrol.cpp
示例18: return
// Start a render. Will set m_LastError and return vfeRenderOptionsNotSet
// if you didn't call vfeSession::SetOptions() first. Otherwise will attempt
// to start the render; if this fails vfeFailedToSendRenderStart is returned.
// If the start attempt succeeds (note this is distinct from the start itself
// actually succeeding - all that the lack of a vfeFailedToSendRenderStart
// error means is that the start request was successfully sent to the backend)
// then a stRenderStartup notification is sent and the state is changed to
// kStarting.
//
// If the start attempt fails (signified by the receipt of a std::exception),
// the exception code will, in the case of a pov_base::Exception, be extracted
// and stored in m_LastError and returned; otherwise (not pov_base::Exception),
// m_LastError is set to -1. In either case, a failed status is set (so that
// vfeSession::Failed() will return true), and, if a fatal error message has
// not already been queued, the text of the exception will be added to both
// the status and error message queues.
int vfeSession::StartRender()
{
if (m_OptionsSet == false)
return (m_LastError = vfeRenderOptionsNotSet);
if (m_RenderOptions.m_Options.Exist(kPOVAttrib_CreateIni))
{
// we deliberately do this twice - once here and once in SetOptions
POVMSUCS2String fn = m_RenderOptions.m_Options.TryGetUCS2String(kPOVAttrib_CreateIni, "");
if (fn.empty() == false)
{
vfeProcessRenderOptions options(this);
POVMSObject obj = *m_RenderOptions.GetOptions();
if (options.WriteFile (UCS2toASCIIString(fn).c_str(), &obj) != kNoErr)
return (m_LastError = vfeFailedToWriteINI);
}
}
try
{
if (!m_Frontend->Start (m_RenderOptions.m_Options))
return (m_LastError = vfeFailedToSendRenderStart) ;
}
catch (std::exception& e)
{
if (dynamic_cast<pov_base::Exception *> (&e) != NULL)
m_RenderErrorCode = dynamic_cast<pov_base::Exception *> (&e)->code() ;
if (m_RenderErrorCode == 0)
m_RenderErrorCode = -1 ;
m_Failed = true ;
if (m_HadErrorMessage == false)
{
AppendErrorMessage (e.what()) ;
AppendStatusMessage (e.what()) ;
}
return (m_LastError = m_RenderErrorCode) ;
}
NotifyEvent(stRenderStartup);
// set this now in case an error causes the frontend state to return to
// kReady before we pick up kStarting in vfeSession::Process().
StateChanged(kStarting) ;
return (m_LastError = vfeNoError) ;
}
开发者ID:UberPOV,项目名称:UberPOV,代码行数:62,代码来源:vfecontrol.cpp
示例19: NotifyQOEEvent
/**
* @brief
* Notify QOE Event.
*
* @param pHTTPSourceMMIHelper
* @param portID
* @param eventID
* @param pClientData
*
* @return status
*/
bool HTTPSourceMMIExtensionEventHandler::HTTPQOEEventManager::
NotifyQOEEvent(HTTPSourceMMIHelper *pHTTPSourceMMIHelper,
const uint32 portID,
const uint32 eventID,
void *pClientData)
{
bool status = false;
if(m_bQOENotify)
{
QTV_MSG_PRIO1(QTVDIAG_HTTP_STREAMING, QTVDIAG_PRIO_LOW,
"HTTPSourceMMIExtensionEventHandler::HTTPQOEEventManager::NotifyQOEEvent eventID = %u",eventID);
status = NotifyEvent(
pHTTPSourceMMIHelper,
portID,
eventID,
pClientData);
}
return status;
}
开发者ID:xingrz,项目名称:android_tools_leeco_msm8996,代码行数:30,代码来源:HTTPSourceMMIExtensionEventHandler.cpp
注:本文中的NotifyEvent函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论