Exemplo n.º 1
0
TextSpeech::TextSpeech(QObject *parent) :
    QObject(parent),_binit(0),_bReading(0)
{
#ifdef ANDROID
    initSpeech();//初始化语音
#endif
}
Exemplo n.º 2
0
BOOL CChatDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	HICON icon = AfxGetApp()->LoadIcon(IDI_CHAT);
	SetIcon(icon, FALSE);

	ContactInfo *my = icqLink->getContactInfo(0);
	CString str;
	str.Format("MyICQ#: %lu", my->uin);
	m_myFace.SetIcon((HICON) icqLink->getFaceIcon(my->face, STATUS_ONLINE));
	SetDlgItemText(IDC_MY_UIN, str);

	ContactInfo *c = icqLink->getContactInfo(tcp->getRemoteUIN());
	str.Format("MyICQ#: %lu", c->uin);
	m_contactFace.SetIcon((HICON) icqLink->getFaceIcon(c->face, STATUS_ONLINE));
	SetDlgItemText(IDC_CONTACT_UIN, str);

	str.Format(IDS_CHAT_TITLE, my->nick.c_str(), c->nick.c_str());
	SetWindowText(str);

	startTime = CTime::GetCurrentTime();
	SetTimer(IDT_TOTAL_TIME, 1000, NULL);

	initSpeech();

	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}