void Clock::Dispose () { if (!IsDisposed ()) { if (GetTimeline () && !Deployment::GetCurrent()->IsShuttingDown ()) { timeline->RemoveHandler (EventObject::DestroyedEvent, EventObject::ClearWeakRef, &timeline); GetTimeline()->TeardownClock (); } EventObject::Dispose (); } }
// public_timeline を取得 CString CJaiku::GetPublicTimeline( CTwitterTimeline *timeline, ProceedingDialog *pdlg ) { // public stream GetTimeline( m_messages2, &m_stat2, m_numOfStats2, PUBLIC_TIMELINE, "http://jaiku.com/feed/json", timeline, pdlg ); return ( m_messages2 ); }
// user_timeline を取得 CString CJaiku::GetUserTimeline( CTwitterTimeline *timeline, ProceedingDialog *pdlg ) { // user's stream CString url = "http://"; url += m_username; url += ".jaiku.com/feed/json"; GetTimeline( m_messages3, &m_stat3, m_numOfStats3, USER_TIMELINE, url, timeline, pdlg ); return ( m_messages3 ); }
// friends_timeline を取得 CString CJaiku::GetFriendsTimeline( CTwitterTimeline *timeline, ProceedingDialog *pdlg ) { // contacts stream CString url = "http://"; url += m_username; url += ".jaiku.com/contacts/feed/json?user="******"&personal_key="; url += m_apiKey; GetTimeline( m_messages, &m_stat, m_numOfStats, FRIENDS_TIMELINE, url, timeline, pdlg ); return ( m_messages ); }