Esempio n. 1
0
wxWebViewConsoleMessageEvent::wxWebViewConsoleMessageEvent(wxWindow* win)
{
    SetEventType(wxEVT_WEBVIEW_CONSOLE_MESSAGE);
    SetEventObject(win);
    if (win)
        SetId(win->GetId());
}
Esempio n. 2
0
wxWebViewReceivedTitleEvent::wxWebViewReceivedTitleEvent(wxWindow* win)
{
    SetEventType(wxEVT_WEBVIEW_RECEIVED_TITLE);
    SetEventObject(win);
    if (win)
        SetId(win->GetId());
}
Esempio n. 3
0
wxWebViewNewWindowEvent::wxWebViewNewWindowEvent(wxWindow* win)
{
    SetEventType(wxEVT_WEBVIEW_NEW_WINDOW);
    SetEventObject(win);
    if (win)
        SetId(win->GetId());
}
Esempio n. 4
0
wxWebViewRightClickEvent::wxWebViewRightClickEvent(wxWindow* win)
{
    SetEventType(wxEVT_WEBVIEW_RIGHT_CLICK);
    SetEventObject(win);
    if (win)
        SetId(win->GetId());
}
Esempio n. 5
0
EXPORT_C void CLogEvent::CopyL(const CLogEvent& aEvent)
/** Makes a copy of the specified log event.

@param aEvent The log event to be copied. */
	{
	// Set data first as this is the only function that can leave
	// If this function fails nothing will be changed
	SetDataL(aEvent.Data());

	SetId(aEvent.Id());
	SetEventType(aEvent.EventType());
	SetTime(aEvent.Time());
	SetDurationType(aEvent.DurationType());
	SetDuration(aEvent.Duration());
	SetContact(aEvent.Contact());
	SetLink(aEvent.Link());
	SetDescription(aEvent.Description());
	SetRemoteParty(aEvent.RemoteParty());
	SetDirection(aEvent.Direction());
	SetStatus(aEvent.Status());
	SetSubject(aEvent.Subject());
	SetNumber(aEvent.Number());

	ClearFlags(KLogFlagsMask);
	SetFlags(aEvent.Flags());
#ifdef SYMBIAN_ENABLE_EVENTLOGGER_DUALSIM
	SetSimId(aEvent.SimId());
#endif
	}
    // /////////////////////////////////////////////////////////////////
    //
    // /////////////////////////////////////////////////////////////////
    bool ListButtonControl::VSetLuaData(const LuaPlus::LuaObject &widgetData)
    {
        I32 currEventType(0);
        std::string tmpText;
        bool a = SetStringFromLua(widgetData["Text"], tmpText);
        bool b = SetIntFromLua(widgetData["EventTypeId"], currEventType);
        bool found(false);

        if(a && b) {
            boost::algorithm::to_lower(tmpText);
            for(std::list<std::string>::iterator i = m_list.begin(), end = m_list.end(); ((!found) && (i != end)); ++i) {
                std::string currStr(*i);
                boost::algorithm::to_lower(currStr);
                if(currStr.compare(tmpText.c_str()) == 0) {
                    found = true;
                    m_curr = i;
                    m_text = *i;
                }
            }

            if(found) {
                SetEventType(currEventType);
            }
        }

        return (a && b && found);
    }
Esempio n. 7
0
wxWebViewLoadEvent::wxWebViewLoadEvent(wxWindow* win)
{
    SetEventType( wxEVT_WEBVIEW_LOAD);
    SetEventObject( win );
    if (win)
        SetId(win->GetId());
}
ButcherDocumentKeyEvent::ButcherDocumentKeyEvent(const wxKeyEvent &event) :
    wxKeyEvent(event)
{
    m_propagationLevel=wxEVENT_PROPAGATE_MAX;
    orig_=GetEventType();
    SetEventType(wxEVT_BUTCHERDOCUMENTKEY_ACTION);
}
Esempio n. 9
0
wxWebViewBeforeLoadEvent::wxWebViewBeforeLoadEvent(wxWindow* win)
{
    m_cancelled = false;
    SetEventType(wxEVT_WEBVIEW_BEFORE_LOAD);
    SetEventObject(win);
    if (win)
        SetId(win->GetId());
}
 WorkerEvent(void* pSender)
 {
     SetId(-1);
     SetEventType(wxEVT_WORKER);
     m_sender = pSender;
     m_exit = false;
     m_workerFailed = false;
 }
Esempio n. 11
0
 WorkerEvent(void* pSender, evt_type type)
 {
     SetId(-1);
     SetEventType(wxEVT_WORKER);
     m_sender = pSender;
     m_eventType = type;
     m_isFailed = false;
 }
Esempio n. 12
0
DeviceEvent::DeviceEvent (const DeviceEvent* original)
{
	SetEventType (DEVICE_EVENT);

	rawData = original->GetRawData (length);
	variables = original->CopyVariables();
	original->GetInAvailable(inAvailable);
	original->GetOutAvailable(outAvailable);
}
Esempio n. 13
0
 // /////////////////////////////////////////////////////////////////
 //
 // /////////////////////////////////////////////////////////////////
 bool SliderControl::VSetLuaData(const LuaPlus::LuaObject &widgetData)
 {
     I32 currEventType(0);
     bool a = SetFloatFromLua(widgetData["SliderPosition"], m_sliderPos);
     bool b = SetIntFromLua(widgetData["EventTypeId"], currEventType);
     if(a && b) {
         m_sliderButPtr->VSetPosition(CalculateButtonPositionFromSlider());
         SetEventType(currEventType);
     }
     return (a && b);
 }
Esempio n. 14
0
DeviceEvent::DeviceEvent()
{
	SetEventType (DEVICE_EVENT);

	length = 1;
	rawData = new unsigned char[length];
	rawData[0] = 0;

	inAvailable = 1;
	outAvailable = 1;

	variables = new std::map<int, int>();
}
Esempio n. 15
0
void CDataCeneter::SetRegTbl(BYTE bOperation, LPVOID VarData)
{
	if (bOperation == SET_DDNS_INFO)
	{
		SetDDNSInfo(bOperation, VarData);
	}
	else if (bOperation == SET_EVENT_TYPE)
	{
		SetEventType(bOperation, VarData);
	}
	else if (bOperation == SET_MAIL_SERVER)
	{
		SetMailServer(bOperation, VarData);
	}
}
Esempio n. 16
0
SubtitlesProviderErrorEvent::SubtitlesProviderErrorEvent(wxString err)
: agi::Exception(STD_STR(err), nullptr)
{
	SetEventType(EVT_SUBTITLES_ERROR);
}
Esempio n. 17
0
VideoProviderErrorEvent::VideoProviderErrorEvent(VideoProviderError const& err)
: agi::Exception(err.GetMessage(), &err)
{
	SetEventType(EVT_VIDEO_ERROR);
}
CREvent::CREvent(EVENTTYPE type)
{
	SetEventType(type);
}
Esempio n. 19
0
SubtitlesProviderErrorEvent::SubtitlesProviderErrorEvent(std::string const& err)
: agi::Exception(err)
{
	SetEventType(EVT_SUBTITLES_ERROR);
}
CLbsNetworkLocateLogEvent::CLbsNetworkLocateLogEvent()
	{
	SetEventType(TUid::Uid(KLogLbsNetworkLocateEventType));
	iPosInfo = NULL;
	}
Esempio n. 21
0
VisualCardMouseEvent::VisualCardMouseEvent( wxWindow* win, CARD_VECTOR cv ): m_cv(cv)
{
	SetEventType( myEVT_VISUALCARD_DROPPED_EVENT );
	SetEventObject( win );
}
CLbsTransmitLocationLogEvent::CLbsTransmitLocationLogEvent()
	{
	SetEventType(TUid::Uid(KLogLbsTransmitLocationEventType));
	iPosInfo = NULL;
	}
Esempio n. 23
0
wxSoundBackendSDLNotification::wxSoundBackendSDLNotification()
{
    SetEventType(wxEVT_SOUND_BACKEND_SDL_NOTIFICATION);
}
Esempio n. 24
0
LoginEvent::LoginEvent(EVENTTYPE type)
{
    SetEventType(type);
}
Esempio n. 25
0
SquiddioEvent::SquiddioEvent()
{
    SetEventType( myEVT_MYEVENT );
}