Esempio n. 1
0
UIListbox::UIListbox(UIWidget *ptr) {
	AddParent(ptr);
	BaseInit();
	char_width = 8;
	char_height = 13;
	SetViewCount(3);
	SetBounds(UIRect(10,10,100,100));
	item_height = 15;
	selected_text = UIColor(0,0,0);
	selected_bg = UIColor(100,142,208);
	SetBgColor(kNone, UIColor(39,39,39));
	SetFontColor(kNone, UIColor(253,253,253));
	button_color = UIColor(159,159,159);
	view_pos = 0;
	selected_index = 0;
	tri_offsetx = 4;
	tri_offsety = 3;
	tri_length = 8;
	chat_mode = false;
	max_lines = 100;
	
	//icon = new UIImage(NULL);
}
Esempio n. 2
0
void CVideoEntry::ConstructL( CVideoEntry* aEntry )
	{
	iMediaTitle = aEntry->MediaTitle().AllocL();
	iCategory = aEntry->Category().AllocL();
	iUrl = aEntry->Url().AllocL();
	iThumbnailUrl = aEntry->ThumbnailUrl().AllocL();
	iThumbnailFile = aEntry->ThumbnailFile().AllocL();
	iVideoId = aEntry->VideoId().AllocL();
	iAuthorName = aEntry->AuthorName().AllocL();
	iAuthorUrl = aEntry->AuthorUrl().AllocL();
	iRelatedUrl = aEntry->RelatedUrl().AllocL();
	iAuthorVideosUrl = aEntry->AuthorVideosUrl().AllocL();

	SetDuration( aEntry->Duration() );
	SetAverageRating( aEntry->AverageRating() );
	SetViewCount( aEntry->ViewCount() );
	SetVideoFileSize( aEntry->VideoFileSize() );
	
	if( aEntry->SavedFileName().Length() )
		iSavedFileName.Copy( aEntry->SavedFileName() );
	else
		iSavedFileName.Copy( KNullDesC() );
	}