void
HTGAvatarView::MessageReceived(BMessage *msg)
{
	switch(msg->what) {
		case POST:
			postTweet();
			fMessage->SetText("");
			_UpdateCounter();
			break;
		case UPDATED:
			_UpdateCounter();
			break;
		default:
			BView::MessageReceived(msg);
	}
}
Beispiel #2
0
void ScrapbookUI::takeCommand(int selection){

    endwin();

    if(selection==1)
        displayScrapbook();

    else if(selection==2)
        postBlog();
    else if(selection==3)
        postTweet();
    else if(selection==4)
        makeHTML();
    else if(selection==5)
        return;

    initialize();
    takeCommand(select(options));

}