1 Index: qpe-gaim/src/QGaimAccountsWindow.cpp
2 ===================================================================
3 --- qpe-gaim.orig/src/QGaimAccountsWindow.cpp 2005-03-06 21:16:47.098868556 +0100
4 +++ qpe-gaim/src/QGaimAccountsWindow.cpp 2005-03-06 21:16:47.353832369 +0100
8 #include <qtoolbutton.h>
9 +#include <qmessagebox.h>
11 /**************************************************************************
12 * QGaimAccountListItem
15 meter = meters->addConnection(gc);
17 - meter->update(QString(text), step, step_count);
18 + meter->update(QString::fromUtf8(text), step, step_count);
26 +qGaimReportDisconnected(GaimConnection *gc, const char *text)
28 +// if (QMessageBox::critical (NULL, "Disconnected", QString("<p>")+text+QString("</p>"), "Retry", "Cancel") == 0)
29 + QMessageBox::critical (NULL, "Disconnected", QString("<p>")+text+QString("</p>"));
33 qGaimConnNotice(GaimConnection *gc, const char *text)
38 +// QMessageBox::information (NULL, "Notice", QString::fromUtf8(text));
41 static GaimConnectionUiOps connUiOps =
44 qGaimConnDisconnected,
47 + qGaimReportDisconnected
51 Index: qpe-gaim/src/QGaimBListWindow.cpp
52 ===================================================================
53 --- qpe-gaim.orig/src/QGaimBListWindow.cpp 2005-03-06 21:16:47.099868414 +0100
54 +++ qpe-gaim/src/QGaimBListWindow.cpp 2005-03-06 21:16:47.354832227 +0100
56 dialog = new QGaimAddBuddyDialog(this, "", true);
59 - dialog->setGroup(group->name);
60 + dialog->setGroup(QString::fromUtf8(group->name));
62 dialog->showMaximized();
65 dialog = new QGaimAddChatDialog(this, "", true);
68 - dialog->setGroup(group->name);
69 + dialog->setGroup(QString::fromUtf8(group->name));
71 dialog->showMaximized();
73 Index: qpe-gaim/src/QGaimBuddyList.cpp
74 ===================================================================
75 --- qpe-gaim.orig/src/QGaimBuddyList.cpp 2005-03-06 21:16:47.101868130 +0100
76 +++ qpe-gaim/src/QGaimBuddyList.cpp 2005-03-06 21:18:39.073975291 +0100
81 - setText(0, gaim_buddy_get_alias(buddy));
82 + setText(0, QString::fromUtf8(gaim_buddy_get_alias(buddy)));
84 else if (GAIM_BLIST_NODE_IS_BUDDY(node))
90 - setPixmap(0, QGaimBuddyList::getBuddyStatusIcon(node, pixmapSize));
91 - setText(0, gaim_buddy_get_alias(buddy));
92 + setPixmap(0, QGaimBuddyList::getBuddyStatusIcon(node, pixmapSize));
93 + setText(0, QString::fromUtf8(gaim_buddy_get_alias(buddy)));
96 else if (GAIM_BLIST_NODE_IS_CHAT(node))
98 statusText = QObject::tr("Offline ");
100 if (contact != NULL && !isExpanded() && contact->alias != NULL)
101 - topText = contact->alias;
102 + topText = QString::fromUtf8(contact->alias);
104 - topText = gaim_buddy_get_alias(buddy);
105 + topText = QString::fromUtf8(gaim_buddy_get_alias(buddy));
107 bottomText = statusText + idleTime + warning;
110 QString groupName, detail;
113 - groupName = group->name;
114 + groupName = QString::fromUtf8(group->name);
116 if (gaim_prefs_get_bool("/gaim/qpe/blist/show_group_count"))
118 Index: qpe-gaim/src/QGaimConnectionMeter.cpp
119 ===================================================================
120 --- qpe-gaim.orig/src/QGaimConnectionMeter.cpp 2005-03-06 21:16:47.101868130 +0100
121 +++ qpe-gaim/src/QGaimConnectionMeter.cpp 2005-03-06 21:16:47.355832086 +0100
126 -QGaimConnectionMeter::update(QString, int progress, int totalSteps)
127 +QGaimConnectionMeter::update(QString str, int progress, int totalSteps)
130 progressBar->setTotalSteps(totalSteps);
132 progressBar->setProgress(progress);
134 -// progressBar->setIndicator(str, progress, totalSteps);
138 Index: qpe-gaim/src/QGaimConvWindow.cpp
139 ===================================================================
140 --- qpe-gaim.orig/src/QGaimConvWindow.cpp 2005-03-06 21:16:47.103867846 +0100
141 +++ qpe-gaim/src/QGaimConvWindow.cpp 2005-03-06 21:16:47.357831802 +0100
143 if (flags & GAIM_MESSAGE_SYSTEM)
147 + txt += QString::fromUtf8(message);
151 @@ -109,13 +109,13 @@
152 if (meify(newMessage, length))
156 + nick += QString::fromUtf8(who);
163 + nick += QString::fromUtf8(who);
172 + nick += QString::fromUtf8(who);
174 if (flags & GAIM_MESSAGE_NICK)
181 + nick = QString::fromUtf8(who);
183 if (flags & GAIM_MESSAGE_AUTO_RESP)
184 nick += "<AUTO-REPLY> :";
187 txt += "</b></font> ";
189 - txt += stripFontFace(newMessage);
190 + txt += stripFontFace(QString::fromUtf8(newMessage));
196 item->setText(0, " ");
198 - item->setText(1, user);
199 + item->setText(1, QString::fromUtf8(user));
200 userList->insertItem(item);
205 item = item->nextSibling())
207 - if (item->text(1) == oldName)
208 + if (item->text(1) == QString::fromUtf8(oldName))
210 - item->setText(1, newName);
211 + item->setText(1, QString::fromUtf8(newName));
217 item = item->nextSibling())
219 - if (item->text(1) == user)
220 + if (item->text(1) == QString::fromUtf8(user))
225 if (text[text.length() - 1] == '\n')
226 text.remove(text.length() - 1, 1);
228 - gaim_conv_chat_send(GAIM_CONV_CHAT(conv), text);
229 + gaim_conv_chat_send(GAIM_CONV_CHAT(conv), text.utf8());
234 if (text[text.length() - 1] == '\n')
235 text.remove(text.length() - 1, 1);
237 - gaim_conv_im_send(GAIM_CONV_IM(conv), text);
238 + gaim_conv_im_send(GAIM_CONV_IM(conv), text.utf8());
243 int result = QMessageBox::information(this,
245 tr("<p>You are about to remove %1 from your buddy list.</p>\n"
246 - "<p>Do you want to continue?</p>").arg(name),
247 + "<p>Do you want to continue?</p>").arg(QString::fromUtf8(name)),
248 tr("&Remove Buddy"), tr("&Cancel"),
249 QString::null, 1, 1);
251 Index: qpe-gaim/src/QGaimDialogs.cpp
252 ===================================================================
253 --- qpe-gaim.orig/src/QGaimDialogs.cpp 2005-03-06 21:16:47.105867562 +0100
254 +++ qpe-gaim/src/QGaimDialogs.cpp 2005-03-06 21:16:47.358831660 +0100
257 GaimGroup *g = (GaimGroup *)node;
259 - groupCombo->insertItem(g->name);
260 + groupCombo->insertItem(QString::fromUtf8(g->name));
265 QGaimAddBuddyDialog::accept()
267 GaimConversation *conv;
268 - QString screenname = screenNameEntry->text();
269 - QString alias = aliasEntry->text();
270 - QString group_name = groupCombo->currentText();
271 + QString screenname = screenNameEntry->text().utf8();
272 + QString alias = aliasEntry->text().utf8();
273 + QString group_name = groupCombo->currentText().utf8();
274 GaimAccount *account;
279 GaimGroup *g = (GaimGroup *)node;
281 - groupCombo->insertItem(g->name);
282 + groupCombo->insertItem(QString::fromUtf8(g->name));
288 GList *chatInfoList, *l;
289 GHashTable *components;
290 - QString alias = aliasEntry->text();
291 - QString groupName = groupCombo->currentText();
292 + QString alias = aliasEntry->text().utf8();
293 + QString groupName = groupCombo->currentText().utf8();
295 struct proto_chat_entry *pce;
299 QGaimNewImDialog::accept()
301 - QString screenname = screenNameEntry->text();
302 + QString screenname = screenNameEntry->text().utf8();
303 GaimAccount *account;
304 GaimConversation *conv;
306 Index: qpe-gaim/src/QGaimRequest.cpp
307 ===================================================================
308 --- qpe-gaim.orig/src/QGaimRequest.cpp 2005-03-06 21:16:47.109866995 +0100
309 +++ qpe-gaim/src/QGaimRequest.cpp 2005-03-06 21:16:47.358831660 +0100
311 dialog->setInfoText(message);
313 if (defaultValue != NULL)
314 - dialog->setDefaultValue(defaultValue);
315 + dialog->setDefaultValue(QString::fromUtf8(defaultValue));
323 - ((GaimRequestInputCb)okCb)(userData, dialog->getText());
324 + ((GaimRequestInputCb)okCb)(userData, dialog->getText().utf8());
326 else if (cancelCb != NULL)
327 ((GaimRequestInputCb)cancelCb)(userData, NULL);