summaryrefslogtreecommitdiff
authordwmw2 <dwmw2>2002-04-04 14:08:17 (UTC)
committer dwmw2 <dwmw2>2002-04-04 14:08:17 (UTC)
commitd3ef7996a0c857451395fcdd2eed63399100586a (patch) (unidiff)
tree054563aae8769f9bf584fab3beee2c63f880c869
parent351f962d07ad32ab3cc3442f85b9fd20fe621b4c (diff)
downloadopie-d3ef7996a0c857451395fcdd2eed63399100586a.zip
opie-d3ef7996a0c857451395fcdd2eed63399100586a.tar.gz
opie-d3ef7996a0c857451395fcdd2eed63399100586a.tar.bz2
SMS sending
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/gsmtool/gsmtool.cpp129
-rw-r--r--noncore/unsupported/gsmtool/gsmtool.h9
-rw-r--r--noncore/unsupported/gsmtool/gsmtoolbase.ui237
3 files changed, 307 insertions, 68 deletions
diff --git a/noncore/unsupported/gsmtool/gsmtool.cpp b/noncore/unsupported/gsmtool/gsmtool.cpp
index 8273461..6fea596 100644
--- a/noncore/unsupported/gsmtool/gsmtool.cpp
+++ b/noncore/unsupported/gsmtool/gsmtool.cpp
@@ -1,349 +1,460 @@
1#include "gsmtool.h" 1#include "gsmtool.h"
2#include <qpushbutton.h> 2#include <qpushbutton.h>
3#include <qcombobox.h> 3#include <qcombobox.h>
4#include <qlineedit.h> 4#include <qlineedit.h>
5#include <qlabel.h> 5#include <qlabel.h>
6#include <qtabwidget.h> 6#include <qtabwidget.h>
7#include <qlistview.h> 7#include <qlistview.h>
8#include <qtextbrowser.h> 8#include <qtextbrowser.h>
9#include <qmultilineedit.h> 9#include <qmultilineedit.h>
10 10
11#include <termios.h> 11#include <termios.h>
12 12
13#include <gsmlib/gsm_me_ta.h> 13#include <gsmlib/gsm_me_ta.h>
14#include <gsmlib/gsm_unix_serial.h> 14#include <gsmlib/gsm_unix_serial.h>
15#include <gsmlib/gsm_sms.h> 15#include <gsmlib/gsm_sms.h>
16#include <gsmlib/gsm_sorted_sms_store.h> 16#include <gsmlib/gsm_sorted_sms_store.h>
17 17
18using namespace gsmlib; 18using namespace gsmlib;
19 19
20 20
21/* 21/*
22 * Constructs a GSMTool which is a child of 'parent', with the 22 * Constructs a GSMTool which is a child of 'parent', with the
23 * name 'name' and widget flags set to 'f' 23 * name 'name' and widget flags set to 'f'
24 */ 24 */
25GSMTool::GSMTool( QWidget* parent, const char* name, WFlags fl ) 25GSMTool::GSMTool( QWidget* parent, const char* name, WFlags fl )
26 : GSMToolBase( parent, name, fl ) 26 : GSMToolBase( parent, name, fl )
27{ 27{
28 devicelocked = 0; 28 devicelocked = 0;
29 me = NULL; 29 me = NULL;
30 sms_store = NULL; 30 sms_store = NULL;
31 setConnected(FALSE); 31 setConnected(FALSE);
32 /* FIXME: Persistent settings for device/baudrate */ 32 /* FIXME: Persistent settings for device/baudrate */
33 connect(ConnectButton, SIGNAL(clicked()), this, SLOT(doConnectButton())); 33 connect(ConnectButton, SIGNAL(clicked()), this, SLOT(doConnectButton()));
34 connect(SMSDeleteButton, SIGNAL(clicked()), this, SLOT(doSMSDeleteButton()));
35 connect(SMSSendButton, SIGNAL(clicked()), this, SLOT(doSMSSendButton()));
36 connect(NewSMSClearButton, SIGNAL(clicked()), this, SLOT(doNewSMSClearButton()));
37 connect(NewSMSSaveButton, SIGNAL(clicked()), this, SLOT(doNewSMSSaveButton()));
38 connect(NewSMSSendButton, SIGNAL(clicked()), this, SLOT(doNewSMSSendButton()));
34 connect(ScanButton, SIGNAL(clicked()), this, SLOT(doScanButton())); 39 connect(ScanButton, SIGNAL(clicked()), this, SLOT(doScanButton()));
35 connect(TabWidget2, SIGNAL(currentChanged(QWidget *)), this, SLOT(doTabChanged())); 40 connect(TabWidget2, SIGNAL(currentChanged(QWidget *)), this, SLOT(doTabChanged()));
36 connect(SMSStoreList, SIGNAL(activated(int)), this, SLOT(doSMSStoreChanged())); 41 connect(SMSStoreList, SIGNAL(activated(int)), this, SLOT(doSMSStoreChanged()));
37 connect(SMSViewType, SIGNAL(activated(int)), this, SLOT(doSMSTypeChanged())); 42 connect(SMSViewType, SIGNAL(activated(int)), this, SLOT(doSMSTypeChanged()));
38 connect(SMSList, SIGNAL(selectionChanged(QListViewItem *)), this, SLOT(doSelectedSMSChanged(QListViewItem *))); 43 connect(SMSList, SIGNAL(selectionChanged(QListViewItem *)), this, SLOT(doSelectedSMSChanged(QListViewItem *)));
39 timerid = -1; // Is this not possible normally? 44 timerid = -1; // Is this not possible normally?
40} 45}
41 46
42/* 47/*
43 * Destroys the object and frees any allocated resources 48 * Destroys the object and frees any allocated resources
44 */ 49 */
45GSMTool::~GSMTool() 50GSMTool::~GSMTool()
46{ 51{
47 // no need to delete child widgets, Qt does it all for us 52 // no need to delete child widgets, Qt does it all for us
48 if (devicelocked) 53 if (devicelocked)
49 unlockDevice(); 54 unlockDevice();
50} 55}
51const speed_t GSMTool::baudrates[12] = { 56const speed_t GSMTool::baudrates[12] = {
52 B300, B600, B1200, B2400, B4800, B9600, B19200, 57 B300, B600, B1200, B2400, B4800, B9600, B19200,
53 B38400, B57600, B115200, B230400, B460800 58 B38400, B57600, B115200, B230400, B460800
54}; 59};
55 60
56int GSMTool::lockDevice( ) 61int GSMTool::lockDevice( )
57{ 62{
58 devicelocked = 1; 63 devicelocked = 1;
59 /* FIXME */ 64 /* FIXME */
60 return 0; 65 return 0;
61} 66}
62 67
63void GSMTool::unlockDevice( ) 68void GSMTool::unlockDevice( )
64{ 69{
65 devicelocked = 0; 70 devicelocked = 0;
66} 71}
67 72
68void GSMTool::setConnected( bool conn ) 73void GSMTool::setConnected( bool conn )
69{ 74{
70 TabWidget2->setTabEnabled(tab_2, conn); 75 TabWidget2->setTabEnabled(tab_2, conn);
71 TabWidget2->setTabEnabled(tab_3, conn); 76 TabWidget2->setTabEnabled(tab_3, conn);
77 TabWidget2->setTabEnabled(tab_4, conn);
72 MfrLabel->setEnabled(conn); 78 MfrLabel->setEnabled(conn);
73 MfrText->setEnabled(conn); 79 MfrText->setEnabled(conn);
74 ModelLabel->setEnabled(conn); 80 ModelLabel->setEnabled(conn);
75 ModelText->setEnabled(conn); 81 ModelText->setEnabled(conn);
76 RevisionLabel->setEnabled(conn); 82 RevisionLabel->setEnabled(conn);
77 RevisionText->setEnabled(conn); 83 RevisionText->setEnabled(conn);
78 SerialLabel->setEnabled(conn); 84 SerialLabel->setEnabled(conn);
79 SerialText->setEnabled(conn); 85 SerialText->setEnabled(conn);
80 86
81} 87}
82void GSMTool::doTabChanged() 88void GSMTool::doTabChanged()
83{ 89{
84 int index = TabWidget2->currentPageIndex(); 90 int index = TabWidget2->currentPageIndex();
85 qDebug("tab changed to %d", index); 91 qDebug("tab changed to %d", index);
86 92
87 if (index == 1) { 93 if (index == 1) {
88 timerid = startTimer(5000); 94 timerid = startTimer(5000);
89 timerEvent(NULL); 95 timerEvent(NULL);
90 } else if (timerid != -1) { 96 } else if (timerid != -1) {
91 killTimer(timerid); 97 killTimer(timerid);
92 timerid = -1; 98 timerid = -1;
93 } 99 }
94} 100}
95 101
96void GSMTool::timerEvent( QTimerEvent * ) 102void GSMTool::timerEvent( QTimerEvent * )
97{ 103{
98 OPInfo opi; 104 OPInfo opi;
99 105
100 opi = me->getCurrentOPInfo(); 106 opi = me->getCurrentOPInfo();
101 107
102 if (opi._numericName == NOT_SET) { 108 if (opi._numericName == NOT_SET) {
103 NetStatText->setText("No network"); 109 NetStatText->setText("No network");
104 NetworkLabel->setEnabled(FALSE); 110 NetworkLabel->setEnabled(FALSE);
105 NetworkText->setEnabled(FALSE); 111 NetworkText->setEnabled(FALSE);
106 NetworkText->setText(""); 112 NetworkText->setText("");
107 SigStrText->setEnabled(FALSE); 113 SigStrText->setEnabled(FALSE);
108 SigStrText->setText(""); 114 SigStrText->setText("");
109 dB->setEnabled(FALSE); 115 dB->setEnabled(FALSE);
110 SigStrLabel->setEnabled(FALSE); 116 SigStrLabel->setEnabled(FALSE);
111 } else { 117 } else {
112 // FIXME: Add 'roaming' info from AT+CFUN 118 // FIXME: Add 'roaming' info from AT+CFUN
113 qDebug("network"); 119 qDebug("network");
114 NetStatText->setText("Registered"); 120 NetStatText->setText("Registered");
115 NetworkLabel->setEnabled(TRUE); 121 NetworkLabel->setEnabled(TRUE);
116 NetworkText->setEnabled(TRUE); 122 NetworkText->setEnabled(TRUE);
117 NetworkText->setText(opi._longName.c_str()); 123 NetworkText->setText(opi._longName.c_str());
118 SigStrText->setEnabled(TRUE); 124 SigStrText->setEnabled(TRUE);
119 125
120 qDebug("get sig str"); 126 qDebug("get sig str");
121 int csq = me->getSignalStrength(); 127 int csq = me->getSignalStrength();
122 if (csq == 0) { 128 if (csq == 0) {
123 SigStrText->setText("<= -113"); 129 SigStrText->setText("<= -113");
124 dB->setEnabled(TRUE); 130 dB->setEnabled(TRUE);
125 SigStrLabel->setEnabled(TRUE); 131 SigStrLabel->setEnabled(TRUE);
126 } else if (csq == 99) { 132 } else if (csq == 99) {
127 SigStrText->setText("Unknown"); 133 SigStrText->setText("Unknown");
128 dB->setEnabled(FALSE); 134 dB->setEnabled(FALSE);
129 SigStrLabel->setEnabled(FALSE); 135 SigStrLabel->setEnabled(FALSE);
130 } else { 136 } else {
131 char buf[6]; 137 char buf[6];
132 sprintf(buf, "%d", -113 + (2*csq)); 138 sprintf(buf, "%d", -113 + (2*csq));
133 SigStrText->setText(buf); 139 SigStrText->setText(buf);
134 dB->setEnabled(TRUE); 140 dB->setEnabled(TRUE);
135 SigStrLabel->setEnabled(TRUE); 141 SigStrLabel->setEnabled(TRUE);
136 } 142 }
137 } 143 }
138} 144}
139 145
140void GSMTool::doSMSStoreChanged() 146void GSMTool::doSMSStoreChanged()
141{ 147{
142 const char *storename = SMSStoreList->currentText().ascii(); 148 const char *storename = SMSStoreList->currentText().ascii();
143 qDebug("Store Changed to '%s'", storename); 149 qDebug("Store Changed to '%s'", storename);
144 if (!strcmp(storename, "None")) { 150 if (!strcmp(storename, "None")) {
145 sms_store = NULL; 151 sms_store = NULL;
146 } else try { 152 } else try {
147 sms_store = me->getSMSStore(storename); 153 sms_store = new SortedSMSStore(me->getSMSStore(storename));
154 sms_store->setSortOrder(ByIndex);
148 155
149 qDebug("got store of size %d", sms_store->size()); 156 qDebug("got store of size %d", sms_store->size());
150 } catch (GsmException) { 157 } catch (GsmException) {
151 sms_store = NULL; 158 sms_store = NULL;
152 qDebug("get store failed"); 159 qDebug("get store failed");
153 } 160 }
154 161
155 SMSList->setEnabled(!(sms_store == NULL)); 162 SMSList->setEnabled(!(sms_store == NULL));
163 NewSMSSaveButton->setEnabled(!(sms_store == NULL));
156 doSMSTypeChanged(); 164 doSMSTypeChanged();
157} 165}
158 166
159void GSMTool::doSMSTypeChanged() 167void GSMTool::doSMSTypeChanged()
160{ 168{
161 int direction = SMSViewType->currentItem(); 169 int direction = SMSViewType->currentItem();
162 qDebug("direction %s\n", direction?"outgoing":"incoming"); 170 qDebug("direction %s\n", direction?"outgoing":"incoming");
171 if (direction)
172 SMSSendButton->setText("Send");
173 else
174 SMSSendButton->setText("Reply");
163 175
164 SMSList->clear(); 176 SMSList->clear();
165 doSelectedSMSChanged(NULL); 177 doSelectedSMSChanged(NULL);
166 178
167 if (sms_store == NULL) 179 if (sms_store == NULL)
168 return; 180 return;
169 for (int i = 0; i < sms_store->size(); i++) { 181 for (SortedSMSStore::iterator e = sms_store->begin();
170 qDebug("Message %d", i); 182 e != sms_store->end(); e++) {
171 qDebug("Is%sempty", sms_store()[i].empty()?" ":" not "); 183 // qDebug("Message %d", i);
172 if (sms_store()[i].empty()) 184 qDebug("Is%sempty", e->empty()?" ":" not ");
185 if (e->empty())
173 continue; 186 continue;
174 187
175 qDebug("Status %d", sms_store()[i].status()); 188 qDebug("Status %d", e->status());
176 SMSMessageRef message = sms_store()[i].message(); 189 SMSMessageRef message = e->message();
177 qDebug("Got message."); 190 qDebug("Got message.");
178 191
179 // qDebug(message->toString().c_str()); 192 // qDebug(message->toString().c_str());
180 if (direction == message->messageType()) { 193 if (direction == message->messageType()) {
181 qDebug("yes\n"); 194 qDebug("yes\n");
182 char buf[3]; 195 char buf[3];
183 snprintf(buf, 3, "%d", i); 196 snprintf(buf, 3, "%d", e->index());
184 new QListViewItem(SMSList, message->address()._number.c_str(), message->serviceCentreTimestamp().toString().c_str(), buf); 197 new QListViewItem(SMSList, message->address()._number.c_str(), message->serviceCentreTimestamp().toString().c_str(), buf);
185 } 198 }
186 } 199 }
187} 200}
188 201
189void GSMTool::doSelectedSMSChanged(QListViewItem *item) 202void GSMTool::doSelectedSMSChanged(QListViewItem *item)
190{ 203{
191 qDebug("message changed\n"); 204 qDebug("message changed\n");
192 205
193 if (!item || sms_store == NULL) { 206 if (!item || sms_store == NULL) {
194 SMSText->setText(""); 207 SMSText->setText("");
195 SMSText->setEnabled(FALSE); 208 SMSText->setEnabled(FALSE);
196 SMSDeleteButton->setEnabled(FALSE); 209 SMSDeleteButton->setEnabled(FALSE);
197 SMSSendButton->setEnabled(FALSE); 210 SMSSendButton->setEnabled(FALSE);
198 return; 211 return;
199 } 212 }
200 /* ARGH. This sucks. Surely there's an app-private pointer in the 213 /* ARGH. This sucks. Surely there's an app-private pointer in the
201 QListViewItem that I've failed to notice? 214 QListViewItem that I've failed to notice?
202 215
203 SMSMessageRef message = *(SMSMessageRef*)item->private; 216 SMSMessageRef message = *(SMSMessageRef*)item->private;
204 */ 217 */
205 qDebug("item %p\n", item); 218 qDebug("item %p\n", item);
206 219
207 qDebug("text(2) is %s\n", item->text(2).ascii()); 220 qDebug("text(2) is %s\n", item->text(2).ascii());
208 int index = atoi(item->text(2).ascii()); 221 int index = atoi(item->text(2).ascii());
209 qDebug("index %d\n", index); 222 qDebug("index %d\n", index);
210 SMSMessageRef message = sms_store()[index].message(); 223 SMSMessageRef message = sms_store->find(index)->message();
211 224
212 SMSText->setText(message->userData().c_str()); 225 SMSText->setText(message->userData().c_str());
213 SMSText->setEnabled(TRUE); 226 SMSText->setEnabled(TRUE);
214 SMSDeleteButton->setEnabled(TRUE); 227 SMSDeleteButton->setEnabled(TRUE);
215 SMSSendButton->setEnabled(TRUE); 228 SMSSendButton->setEnabled(TRUE);
216 229
217} 230}
231
232void GSMTool::doSMSSendButton()
233{
234 qDebug("SMSSendButton");
235
236 QListViewItem *item = SMSList->currentItem();
237 if (!item)
238 return;
239
240 int index = atoi(item->text(2).ascii());
241 qDebug("index %d\n", index);
242
243 int direction = SMSViewType->currentItem();
244 qDebug("direction %s\n", direction?"outgoing":"incoming");
245
246 SMSMessageRef message = sms_store->find(index)->message();
247
248 if (direction)
249 NewSMSText->setText(message->userData().c_str());
250 else
251 NewSMSText->setText("");
252 NewSMSToBox->insertItem(message->address()._number.c_str(), 0);
253 TabWidget2->setCurrentPage(3);
254
255}
256
257void GSMTool::doNewSMSClearButton()
258{
259 NewSMSText->setText("");
260}
261
262void GSMTool::doNewSMSSaveButton()
263{
264 qDebug("NewSMSSaveButton");
265 const char *msgtext = strdup(NewSMSText->text().local8Bit());
266 const char *dest = NewSMSToBox->currentText().ascii();
267
268 NewSMSStatusLabel->setText("Sending...");
269 me->setMessageService(1);
270
271 qDebug("NewSMSSendButton: '%s' to '%s'", msgtext, dest);
272
273 SMSMessageRef m = new SMSSubmitMessage (msgtext, dest);
274 sms_store->insert(m);
275 free((void *)msgtext);
276
277}
278void GSMTool::doNewSMSSendButton()
279{
280 const char *msgtext = strdup(NewSMSText->text().local8Bit());
281 const char *dest = NewSMSToBox->currentText().ascii();
282
283 NewSMSStatusLabel->setText("Sending...");
284 me->setMessageService(1);
285
286 qDebug("NewSMSSendButton: '%s' to '%s'", msgtext, dest);
287
288 SMSSubmitMessage m(msgtext, dest);
289 try {
290 Ref<SMSMessage> ackPDU;
291 m.setAt(new GsmAt(*me));
292 m.send(ackPDU);
293
294 // print acknowledgement if available
295 if (! ackPDU.isnull())
296 cout << ackPDU->toString();
297 NewSMSStatusLabel->setText("Message sent.");
298 } catch (GsmException &ge) {
299 NewSMSStatusLabel->setText("Failed.");
300 qDebug(ge.what());
301 }
302 free((void *)msgtext);
303
304
305}
306
307
308void GSMTool::doSMSDeleteButton()
309{
310 QListViewItem *item = SMSList->currentItem();
311 if (!item)
312 return;
313
314 int index = atoi(item->text(2).ascii());
315 qDebug("delete SMS with index %d\n", index);
316
317
318
319 SortedSMSStore::iterator e = sms_store->find(index);
320
321 if (e != sms_store->end()) {
322 qDebug("message is %s\n", e->message()->userData().c_str());
323 sms_store->erase(e);
324
325 }
326 doSMSTypeChanged();
327}
328
218void GSMTool::doScanButton() 329void GSMTool::doScanButton()
219{ 330{
220 qDebug("ScanButton"); 331 qDebug("ScanButton");
221 332
222 NetworkList->setEnabled(FALSE); 333 NetworkList->setEnabled(FALSE);
223 AvailNetsLabel->setEnabled(FALSE); 334 AvailNetsLabel->setEnabled(FALSE);
224 NetworkList->clear(); 335 NetworkList->clear();
225 new QListViewItem(NetworkList, "Scanning..."); 336 new QListViewItem(NetworkList, "Scanning...");
226 337
227 vector<OPInfo> opis; 338 vector<OPInfo> opis;
228 339
229 try { 340 try {
230 opis = me->getAvailableOPInfo(); 341 opis = me->getAvailableOPInfo();
231 } catch (GsmException) { 342 } catch (GsmException) {
232 NetworkList->clear(); 343 NetworkList->clear();
233 new QListViewItem(NetworkList, "Scan failed..."); 344 new QListViewItem(NetworkList, "Scan failed...");
234 return; 345 return;
235 } 346 }
236 347
237 NetworkList->clear(); 348 NetworkList->clear();
238 for (vector<OPInfo>::iterator i = opis.begin(); i != opis.end(); ++i) { 349 for (vector<OPInfo>::iterator i = opis.begin(); i != opis.end(); ++i) {
239 char *statustext; 350 char *statustext;
240 switch (i->_status) { 351 switch (i->_status) {
241 352
242 case UnknownOPStatus: 353 case UnknownOPStatus:
243 statustext = "unknown"; 354 statustext = "unknown";
244 break; 355 break;
245 356
246 case CurrentOPStatus: 357 case CurrentOPStatus:
247 statustext = "current"; 358 statustext = "current";
248 break; 359 break;
249 360
250 case AvailableOPStatus: 361 case AvailableOPStatus:
251 statustext = "available"; 362 statustext = "available";
252 break; 363 break;
253 364
254 case ForbiddenOPStatus: 365 case ForbiddenOPStatus:
255 statustext = "forbidden"; 366 statustext = "forbidden";
256 break; 367 break;
257 368
258 default: 369 default:
259 statustext = "(ERROR)"; 370 statustext = "(ERROR)";
260 } 371 }
261 char num[7]; 372 char num[7];
262 snprintf(num, 6, "%d", i->_numericName); 373 snprintf(num, 6, "%d", i->_numericName);
263 new QListViewItem(NetworkList, i->_longName.c_str(), statustext, num, i->_shortName.c_str()); 374 new QListViewItem(NetworkList, i->_longName.c_str(), statustext, num, i->_shortName.c_str());
264 } 375 }
265 NetworkList->setEnabled(TRUE); 376 NetworkList->setEnabled(TRUE);
266 AvailNetsLabel->setEnabled(TRUE); 377 AvailNetsLabel->setEnabled(TRUE);
267} 378}
268/* 379/*
269 * A simple slot... not very interesting. 380 * A simple slot... not very interesting.
270 */ 381 */
271void GSMTool::doConnectButton() 382void GSMTool::doConnectButton()
272{ 383{
273 gsmlib::Port *port; 384 gsmlib::Port *port;
274 385
275 speed_t rate; 386 speed_t rate;
276 devicename = strdup(DeviceName->currentText().local8Bit().data()); 387 devicename = strdup(DeviceName->currentText().local8Bit().data());
277 rate = baudrates[BaudRate->currentItem()]; 388 rate = baudrates[BaudRate->currentItem()];
278 389
279 qDebug("Connect Button Pressed"); 390 qDebug("Connect Button Pressed");
280 MfrText->setText("Opening..."); 391 MfrText->setText("Opening...");
281 ModelText->setText(""); 392 ModelText->setText("");
282 RevisionText->setText(""); 393 RevisionText->setText("");
283 SerialText->setText(""); 394 SerialText->setText("");
284 395
285 setConnected(FALSE); 396 setConnected(FALSE);
286 if (me) { 397 if (me) {
287 me = NULL; 398 me = NULL;
288 } 399 }
289 400
290 if (lockDevice()) { 401 if (lockDevice()) {
291 qDebug("lockDevice() failed\n"); 402 qDebug("lockDevice() failed\n");
292 MfrText->setText("Lock port failed"); 403 MfrText->setText("Lock port failed");
293 }; 404 };
294 405
295 qDebug("Device name is %s\n", devicename); 406 qDebug("Device name is %s\n", devicename);
296 407
297 try { 408 try {
298 port = new UnixSerialPort(devicename, rate, DEFAULT_INIT_STRING, 0); 409 port = new UnixSerialPort(devicename, rate, DEFAULT_INIT_STRING, 0);
299 } catch (GsmException) { 410 } catch (GsmException) {
300 qDebug("port failed"); 411 qDebug("port failed");
301 MfrText->setText("Open port failed"); 412 MfrText->setText("Open port failed");
302 return; 413 return;
303 } 414 }
304 MfrText->setText("Initialising..."); 415 MfrText->setText("Initialising...");
305 qDebug("got port"); 416 qDebug("got port");
306 try { 417 try {
307 me = new MeTa(port); 418 me = new MeTa(port);
308 } catch (GsmException) { 419 } catch (GsmException) {
309 qDebug("meta failed"); 420 qDebug("meta failed");
310 MfrText->setText("Initialise GSM unit failed"); 421 MfrText->setText("Initialise GSM unit failed");
311 me = NULL; 422 me = NULL;
312 unlockDevice(); 423 unlockDevice();
313 return; 424 return;
314 } 425 }
315 426
316 qDebug("Opened"); 427 qDebug("Opened");
317 428
318 MEInfo ifo; 429 MEInfo ifo;
319 430
320 MfrText->setText("Querying..."); 431 MfrText->setText("Querying...");
321 432
322 try { 433 try {
323 ifo = me->getMEInfo(); 434 ifo = me->getMEInfo();
324 } catch (GsmException) { 435 } catch (GsmException) {
325 qDebug("getMEInfo failed"); 436 qDebug("getMEInfo failed");
326 MfrText->setText("Query GSM unit failed"); 437 MfrText->setText("Query GSM unit failed");
327 me = NULL; 438 me = NULL;
328 unlockDevice(); 439 unlockDevice();
329 return; 440 return;
330 } 441 }
331 442
332 MfrText->setText(ifo._manufacturer.c_str()); 443 MfrText->setText(ifo._manufacturer.c_str());
333 ModelText->setText(ifo._model.c_str()); 444 ModelText->setText(ifo._model.c_str());
334 RevisionText->setText(ifo._revision.c_str()); 445 RevisionText->setText(ifo._revision.c_str());
335 SerialText->setText(ifo._serialNumber.c_str()); 446 SerialText->setText(ifo._serialNumber.c_str());
336 setConnected(TRUE); 447 setConnected(TRUE);
337 448
338 SMSStoreList->clear(); 449 SMSStoreList->clear();
339 SMSStoreList->insertItem("None"); 450 SMSStoreList->insertItem("None");
340 451
341 vector<string> storenames = me->getSMSStoreNames(); 452 vector<string> storenames = me->getSMSStoreNames();
342 453
343 for (vector<string>::iterator i = storenames.begin(); i != storenames.end(); ++i) { 454 for (vector<string>::iterator i = storenames.begin(); i != storenames.end(); ++i) {
344 SMSStoreList->insertItem(i->c_str()); 455 SMSStoreList->insertItem(i->c_str());
345 } 456 }
346 SMSList->clear(); 457 SMSList->clear();
347 SMSText->setText(""); 458 SMSText->setText("");
348 sms_store = NULL; 459 sms_store = NULL;
349} 460}
diff --git a/noncore/unsupported/gsmtool/gsmtool.h b/noncore/unsupported/gsmtool/gsmtool.h
index b8d9a86..b38ff88 100644
--- a/noncore/unsupported/gsmtool/gsmtool.h
+++ b/noncore/unsupported/gsmtool/gsmtool.h
@@ -1,45 +1,50 @@
1#ifndef EXAMPLE_H 1#ifndef EXAMPLE_H
2#define EXAMPLE_H 2#define EXAMPLE_H
3#include "gsmtoolbase.h" 3#include "gsmtoolbase.h"
4 4
5#include <termios.h> 5#include <termios.h>
6 6
7#include <gsmlib/gsm_me_ta.h> 7#include <gsmlib/gsm_me_ta.h>
8#include <gsmlib/gsm_sorted_sms_store.h>
8 9
9class GSMTool : public GSMToolBase 10class GSMTool : public GSMToolBase
10{ 11{
11 Q_OBJECT 12 Q_OBJECT
12 13
13public: 14public:
14 GSMTool( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); 15 GSMTool( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
15 ~GSMTool(); 16 ~GSMTool();
16 17
17protected: 18protected:
18 void timerEvent(QTimerEvent *te ); 19 void timerEvent(QTimerEvent *te );
19 20
20private slots: 21private slots:
21 void doConnectButton(); 22 void doConnectButton();
22 void doScanButton(); 23 void doScanButton();
23 void doTabChanged(); 24 void doTabChanged();
24 void doSMSStoreChanged(); 25 void doSMSStoreChanged();
25 void doSMSTypeChanged(); 26 void doSMSTypeChanged();
26 void doSelectedSMSChanged(QListViewItem *); 27 void doSelectedSMSChanged(QListViewItem *);
27 28 void doSMSSendButton();
29 void doSMSDeleteButton();
30 void doNewSMSClearButton();
31 void doNewSMSSaveButton();
32 void doNewSMSSendButton();
28private: 33private:
29 static const speed_t baudrates[]; 34 static const speed_t baudrates[];
30 int devicelocked; 35 int devicelocked;
31 int timerid; 36 int timerid;
32 37
33 gsmlib::MeTa *me; 38 gsmlib::MeTa *me;
34 gsmlib::SMSStoreRef sms_store; 39 gsmlib::SortedSMSStoreRef sms_store;
35 40
36 char *devicename; 41 char *devicename;
37 speed_t baudrate; 42 speed_t baudrate;
38 43
39 int lockDevice( ); 44 int lockDevice( );
40 void unlockDevice( ); 45 void unlockDevice( );
41 46
42 void setConnected( bool conn ); 47 void setConnected( bool conn );
43}; 48};
44 49
45#endif // EXAMPLE_H 50#endif // EXAMPLE_H
diff --git a/noncore/unsupported/gsmtool/gsmtoolbase.ui b/noncore/unsupported/gsmtool/gsmtoolbase.ui
index 2cca852..65e75ec 100644
--- a/noncore/unsupported/gsmtool/gsmtoolbase.ui
+++ b/noncore/unsupported/gsmtool/gsmtoolbase.ui
@@ -1,957 +1,1080 @@
1<!DOCTYPE UI><UI> 1<!DOCTYPE UI><UI>
2<class>GSMToolBase</class> 2<class>GSMToolBase</class>
3<widget> 3<widget>
4 <class>QWidget</class> 4 <class>QWidget</class>
5 <property stdset="1"> 5 <property stdset="1">
6 <name>name</name> 6 <name>name</name>
7 <cstring>GSM Tool</cstring> 7 <cstring>GSM Tool</cstring>
8 </property> 8 </property>
9 <property stdset="1"> 9 <property stdset="1">
10 <name>geometry</name> 10 <name>geometry</name>
11 <rect> 11 <rect>
12 <x>0</x> 12 <x>0</x>
13 <y>0</y> 13 <y>0</y>
14 <width>371</width> 14 <width>404</width>
15 <height>390</height> 15 <height>390</height>
16 </rect> 16 </rect>
17 </property> 17 </property>
18 <property stdset="1"> 18 <property stdset="1">
19 <name>caption</name> 19 <name>caption</name>
20 <string>GSM Tool</string> 20 <string>GSM Tool</string>
21 </property> 21 </property>
22 <property> 22 <property>
23 <name>layoutMargin</name> 23 <name>layoutMargin</name>
24 </property> 24 </property>
25 <property> 25 <property>
26 <name>layoutSpacing</name> 26 <name>layoutSpacing</name>
27 </property> 27 </property>
28 <vbox> 28 <grid>
29 <property stdset="1"> 29 <property stdset="1">
30 <name>margin</name> 30 <name>margin</name>
31 <number>2</number> 31 <number>2</number>
32 </property> 32 </property>
33 <property stdset="1"> 33 <property stdset="1">
34 <name>spacing</name> 34 <name>spacing</name>
35 <number>1</number> 35 <number>1</number>
36 </property> 36 </property>
37 <widget> 37 <widget row="0" column="0" >
38 <class>QTabWidget</class> 38 <class>QTabWidget</class>
39 <property stdset="1"> 39 <property stdset="1">
40 <name>name</name> 40 <name>name</name>
41 <cstring>TabWidget2</cstring> 41 <cstring>TabWidget2</cstring>
42 </property> 42 </property>
43 <property stdset="1"> 43 <property stdset="1">
44 <name>sizePolicy</name> 44 <name>sizePolicy</name>
45 <sizepolicy> 45 <sizepolicy>
46 <hsizetype>7</hsizetype> 46 <hsizetype>7</hsizetype>
47 <vsizetype>7</vsizetype> 47 <vsizetype>7</vsizetype>
48 </sizepolicy> 48 </sizepolicy>
49 </property> 49 </property>
50 <property stdset="1"> 50 <property stdset="1">
51 <name>focusPolicy</name> 51 <name>focusPolicy</name>
52 <enum>NoFocus</enum> 52 <enum>NoFocus</enum>
53 </property> 53 </property>
54 <property> 54 <property>
55 <name>layoutMargin</name> 55 <name>layoutMargin</name>
56 </property> 56 </property>
57 <property> 57 <property>
58 <name>layoutSpacing</name> 58 <name>layoutSpacing</name>
59 </property> 59 </property>
60 <widget> 60 <widget>
61 <class>QWidget</class> 61 <class>QWidget</class>
62 <property stdset="1"> 62 <property stdset="1">
63 <name>name</name> 63 <name>name</name>
64 <cstring>tab</cstring> 64 <cstring>tab</cstring>
65 </property> 65 </property>
66 <attribute> 66 <attribute>
67 <name>title</name> 67 <name>title</name>
68 <string>Device</string> 68 <string>Device</string>
69 </attribute> 69 </attribute>
70 <vbox> 70 <vbox>
71 <property stdset="1"> 71 <property stdset="1">
72 <name>margin</name> 72 <name>margin</name>
73 <number>2</number> 73 <number>2</number>
74 </property> 74 </property>
75 <property stdset="1"> 75 <property stdset="1">
76 <name>spacing</name> 76 <name>spacing</name>
77 <number>1</number> 77 <number>1</number>
78 </property> 78 </property>
79 <widget> 79 <widget>
80 <class>QLabel</class> 80 <class>QLabel</class>
81 <property stdset="1"> 81 <property stdset="1">
82 <name>name</name> 82 <name>name</name>
83 <cstring>DeviceLabel</cstring> 83 <cstring>DeviceLabel</cstring>
84 </property> 84 </property>
85 <property stdset="1"> 85 <property stdset="1">
86 <name>text</name> 86 <name>text</name>
87 <string>Modem Device:</string> 87 <string>Modem Device:</string>
88 </property> 88 </property>
89 </widget> 89 </widget>
90 <widget> 90 <widget>
91 <class>QComboBox</class> 91 <class>QComboBox</class>
92 <item> 92 <item>
93 <property> 93 <property>
94 <name>text</name> 94 <name>text</name>
95 <string>/dev/ircomm0</string> 95 <string>/dev/ircomm0</string>
96 </property> 96 </property>
97 </item> 97 </item>
98 <item> 98 <item>
99 <property> 99 <property>
100 <name>text</name> 100 <name>text</name>
101 <string>/dev/ttySA0</string> 101 <string>/dev/ttySA0</string>
102 </property> 102 </property>
103 </item> 103 </item>
104 <item> 104 <item>
105 <property> 105 <property>
106 <name>text</name> 106 <name>text</name>
107 <string>/dev/ttyS0</string> 107 <string>/dev/ttyS0</string>
108 </property> 108 </property>
109 </item> 109 </item>
110 <property stdset="1"> 110 <property stdset="1">
111 <name>name</name> 111 <name>name</name>
112 <cstring>DeviceName</cstring> 112 <cstring>DeviceName</cstring>
113 </property> 113 </property>
114 <property stdset="1"> 114 <property stdset="1">
115 <name>editable</name> 115 <name>editable</name>
116 <bool>true</bool> 116 <bool>true</bool>
117 </property> 117 </property>
118 <property stdset="1"> 118 <property stdset="1">
119 <name>currentItem</name> 119 <name>currentItem</name>
120 <number>0</number> 120 <number>0</number>
121 </property> 121 </property>
122 <property stdset="1">
123 <name>duplicatesEnabled</name>
124 <bool>false</bool>
125 </property>
122 </widget> 126 </widget>
123 <widget> 127 <widget>
124 <class>QLabel</class> 128 <class>QLabel</class>
125 <property stdset="1"> 129 <property stdset="1">
126 <name>name</name> 130 <name>name</name>
127 <cstring>BaudLabel</cstring> 131 <cstring>BaudLabel</cstring>
128 </property> 132 </property>
129 <property stdset="1"> 133 <property stdset="1">
130 <name>text</name> 134 <name>text</name>
131 <string>Baud Rate:</string> 135 <string>Baud Rate:</string>
132 </property> 136 </property>
133 </widget> 137 </widget>
134 <widget> 138 <widget>
135 <class>QLayoutWidget</class> 139 <class>QLayoutWidget</class>
136 <property stdset="1"> 140 <property stdset="1">
137 <name>name</name> 141 <name>name</name>
138 <cstring>Layout8</cstring> 142 <cstring>Layout8</cstring>
139 </property> 143 </property>
140 <property> 144 <property>
141 <name>layoutMargin</name> 145 <name>layoutMargin</name>
142 </property> 146 </property>
143 <hbox> 147 <hbox>
144 <property stdset="1"> 148 <property stdset="1">
145 <name>margin</name> 149 <name>margin</name>
146 <number>0</number> 150 <number>0</number>
147 </property> 151 </property>
148 <property stdset="1"> 152 <property stdset="1">
149 <name>spacing</name> 153 <name>spacing</name>
150 <number>1</number> 154 <number>1</number>
151 </property> 155 </property>
152 <widget> 156 <widget>
153 <class>QComboBox</class> 157 <class>QComboBox</class>
154 <item> 158 <item>
155 <property> 159 <property>
156 <name>text</name> 160 <name>text</name>
157 <string>300</string> 161 <string>300</string>
158 </property> 162 </property>
159 </item> 163 </item>
160 <item> 164 <item>
161 <property> 165 <property>
162 <name>text</name> 166 <name>text</name>
163 <string>600</string> 167 <string>600</string>
164 </property> 168 </property>
165 </item> 169 </item>
166 <item> 170 <item>
167 <property> 171 <property>
168 <name>text</name> 172 <name>text</name>
169 <string>1200</string> 173 <string>1200</string>
170 </property> 174 </property>
171 </item> 175 </item>
172 <item> 176 <item>
173 <property> 177 <property>
174 <name>text</name> 178 <name>text</name>
175 <string>2400</string> 179 <string>2400</string>
176 </property> 180 </property>
177 </item> 181 </item>
178 <item> 182 <item>
179 <property> 183 <property>
180 <name>text</name> 184 <name>text</name>
181 <string>4800</string> 185 <string>4800</string>
182 </property> 186 </property>
183 </item> 187 </item>
184 <item> 188 <item>
185 <property> 189 <property>
186 <name>text</name> 190 <name>text</name>
187 <string>9600</string> 191 <string>9600</string>
188 </property> 192 </property>
189 </item> 193 </item>
190 <item> 194 <item>
191 <property> 195 <property>
192 <name>text</name> 196 <name>text</name>
193 <string>19200</string> 197 <string>19200</string>
194 </property> 198 </property>
195 </item> 199 </item>
196 <item> 200 <item>
197 <property> 201 <property>
198 <name>text</name> 202 <name>text</name>
199 <string>38400</string> 203 <string>38400</string>
200 </property> 204 </property>
201 </item> 205 </item>
202 <item> 206 <item>
203 <property> 207 <property>
204 <name>text</name> 208 <name>text</name>
205 <string>57600</string> 209 <string>57600</string>
206 </property> 210 </property>
207 </item> 211 </item>
208 <item> 212 <item>
209 <property> 213 <property>
210 <name>text</name> 214 <name>text</name>
211 <string>115200</string> 215 <string>115200</string>
212 </property> 216 </property>
213 </item> 217 </item>
214 <item> 218 <item>
215 <property> 219 <property>
216 <name>text</name> 220 <name>text</name>
217 <string>230400</string> 221 <string>230400</string>
218 </property> 222 </property>
219 </item> 223 </item>
220 <item> 224 <item>
221 <property> 225 <property>
222 <name>text</name> 226 <name>text</name>
223 <string>460800</string> 227 <string>460800</string>
224 </property> 228 </property>
225 </item> 229 </item>
226 <property stdset="1"> 230 <property stdset="1">
227 <name>name</name> 231 <name>name</name>
228 <cstring>BaudRate</cstring> 232 <cstring>BaudRate</cstring>
229 </property> 233 </property>
230 <property stdset="1"> 234 <property stdset="1">
231 <name>editable</name> 235 <name>editable</name>
232 <bool>false</bool> 236 <bool>false</bool>
233 </property> 237 </property>
234 <property stdset="1"> 238 <property stdset="1">
235 <name>currentItem</name> 239 <name>currentItem</name>
236 <number>6</number> 240 <number>6</number>
237 </property> 241 </property>
238 </widget> 242 </widget>
239 <spacer> 243 <spacer>
240 <property> 244 <property>
241 <name>name</name> 245 <name>name</name>
242 <cstring>Spacer5</cstring> 246 <cstring>Spacer5</cstring>
243 </property> 247 </property>
244 <property stdset="1"> 248 <property stdset="1">
245 <name>orientation</name> 249 <name>orientation</name>
246 <enum>Horizontal</enum> 250 <enum>Horizontal</enum>
247 </property> 251 </property>
248 <property stdset="1"> 252 <property stdset="1">
249 <name>sizeType</name> 253 <name>sizeType</name>
250 <enum>Expanding</enum> 254 <enum>Expanding</enum>
251 </property> 255 </property>
252 <property> 256 <property>
253 <name>sizeHint</name> 257 <name>sizeHint</name>
254 <size> 258 <size>
255 <width>20</width> 259 <width>20</width>
256 <height>20</height> 260 <height>20</height>
257 </size> 261 </size>
258 </property> 262 </property>
259 </spacer> 263 </spacer>
260 <widget> 264 <widget>
261 <class>QPushButton</class> 265 <class>QPushButton</class>
262 <property stdset="1"> 266 <property stdset="1">
263 <name>name</name> 267 <name>name</name>
264 <cstring>ConnectButton</cstring> 268 <cstring>ConnectButton</cstring>
265 </property> 269 </property>
266 <property stdset="1"> 270 <property stdset="1">
267 <name>sizePolicy</name> 271 <name>sizePolicy</name>
268 <sizepolicy> 272 <sizepolicy>
269 <hsizetype>1</hsizetype> 273 <hsizetype>1</hsizetype>
270 <vsizetype>1</vsizetype> 274 <vsizetype>1</vsizetype>
271 </sizepolicy> 275 </sizepolicy>
272 </property> 276 </property>
273 <property stdset="1"> 277 <property stdset="1">
274 <name>text</name> 278 <name>text</name>
275 <string>Connect</string> 279 <string>Connect</string>
276 </property> 280 </property>
277 </widget> 281 </widget>
278 </hbox> 282 </hbox>
279 </widget> 283 </widget>
280 <widget> 284 <widget>
281 <class>Line</class> 285 <class>Line</class>
282 <property stdset="1"> 286 <property stdset="1">
283 <name>name</name> 287 <name>name</name>
284 <cstring>Line1</cstring> 288 <cstring>Line1</cstring>
285 </property> 289 </property>
286 <property stdset="1"> 290 <property stdset="1">
287 <name>orientation</name> 291 <name>orientation</name>
288 <enum>Horizontal</enum> 292 <enum>Horizontal</enum>
289 </property> 293 </property>
290 </widget> 294 </widget>
291 <widget> 295 <widget>
292 <class>QLabel</class> 296 <class>QLabel</class>
293 <property stdset="1"> 297 <property stdset="1">
294 <name>name</name> 298 <name>name</name>
295 <cstring>MfrLabel</cstring> 299 <cstring>MfrLabel</cstring>
296 </property> 300 </property>
297 <property stdset="1"> 301 <property stdset="1">
298 <name>enabled</name> 302 <name>enabled</name>
299 <bool>true</bool> 303 <bool>true</bool>
300 </property> 304 </property>
301 <property stdset="1"> 305 <property stdset="1">
302 <name>text</name> 306 <name>text</name>
303 <string>Manufacturer:</string> 307 <string>Manufacturer:</string>
304 </property> 308 </property>
305 </widget> 309 </widget>
306 <widget> 310 <widget>
307 <class>QLineEdit</class> 311 <class>QLineEdit</class>
308 <property stdset="1"> 312 <property stdset="1">
309 <name>name</name> 313 <name>name</name>
310 <cstring>MfrText</cstring> 314 <cstring>MfrText</cstring>
311 </property> 315 </property>
312 <property stdset="1"> 316 <property stdset="1">
313 <name>sizePolicy</name> 317 <name>sizePolicy</name>
314 <sizepolicy> 318 <sizepolicy>
315 <hsizetype>1</hsizetype> 319 <hsizetype>1</hsizetype>
316 <vsizetype>0</vsizetype> 320 <vsizetype>0</vsizetype>
317 </sizepolicy> 321 </sizepolicy>
318 </property> 322 </property>
319 <property stdset="1"> 323 <property stdset="1">
320 <name>focusPolicy</name> 324 <name>focusPolicy</name>
321 <enum>NoFocus</enum> 325 <enum>NoFocus</enum>
322 </property> 326 </property>
323 <property stdset="1"> 327 <property stdset="1">
324 <name>text</name> 328 <name>text</name>
325 <string></string> 329 <string></string>
326 </property> 330 </property>
327 </widget> 331 </widget>
328 <widget> 332 <widget>
329 <class>QLabel</class> 333 <class>QLabel</class>
330 <property stdset="1"> 334 <property stdset="1">
331 <name>name</name> 335 <name>name</name>
332 <cstring>ModelLabel</cstring> 336 <cstring>ModelLabel</cstring>
333 </property> 337 </property>
334 <property stdset="1"> 338 <property stdset="1">
335 <name>text</name> 339 <name>text</name>
336 <string>Model:</string> 340 <string>Model:</string>
337 </property> 341 </property>
338 </widget> 342 </widget>
339 <widget> 343 <widget>
340 <class>QLineEdit</class> 344 <class>QLineEdit</class>
341 <property stdset="1"> 345 <property stdset="1">
342 <name>name</name> 346 <name>name</name>
343 <cstring>ModelText</cstring> 347 <cstring>ModelText</cstring>
344 </property> 348 </property>
345 <property stdset="1"> 349 <property stdset="1">
346 <name>focusPolicy</name> 350 <name>focusPolicy</name>
347 <enum>NoFocus</enum> 351 <enum>NoFocus</enum>
348 </property> 352 </property>
349 </widget> 353 </widget>
350 <widget> 354 <widget>
351 <class>QLabel</class> 355 <class>QLabel</class>
352 <property stdset="1"> 356 <property stdset="1">
353 <name>name</name> 357 <name>name</name>
354 <cstring>RevisionLabel</cstring> 358 <cstring>RevisionLabel</cstring>
355 </property> 359 </property>
356 <property stdset="1"> 360 <property stdset="1">
357 <name>text</name> 361 <name>text</name>
358 <string>Revision:</string> 362 <string>Revision:</string>
359 </property> 363 </property>
360 </widget> 364 </widget>
361 <widget> 365 <widget>
362 <class>QLineEdit</class> 366 <class>QLineEdit</class>
363 <property stdset="1"> 367 <property stdset="1">
364 <name>name</name> 368 <name>name</name>
365 <cstring>RevisionText</cstring> 369 <cstring>RevisionText</cstring>
366 </property> 370 </property>
367 <property stdset="1"> 371 <property stdset="1">
368 <name>focusPolicy</name> 372 <name>focusPolicy</name>
369 <enum>NoFocus</enum> 373 <enum>NoFocus</enum>
370 </property> 374 </property>
371 </widget> 375 </widget>
372 <widget> 376 <widget>
373 <class>QLabel</class> 377 <class>QLabel</class>
374 <property stdset="1"> 378 <property stdset="1">
375 <name>name</name> 379 <name>name</name>
376 <cstring>SerialLabel</cstring> 380 <cstring>SerialLabel</cstring>
377 </property> 381 </property>
378 <property stdset="1"> 382 <property stdset="1">
379 <name>text</name> 383 <name>text</name>
380 <string>Serial Number:</string> 384 <string>Serial Number:</string>
381 </property> 385 </property>
382 </widget> 386 </widget>
383 <widget> 387 <widget>
384 <class>QLineEdit</class> 388 <class>QLineEdit</class>
385 <property stdset="1"> 389 <property stdset="1">
386 <name>name</name> 390 <name>name</name>
387 <cstring>SerialText</cstring> 391 <cstring>SerialText</cstring>
388 </property> 392 </property>
389 <property stdset="1"> 393 <property stdset="1">
390 <name>focusPolicy</name> 394 <name>focusPolicy</name>
391 <enum>NoFocus</enum> 395 <enum>NoFocus</enum>
392 </property> 396 </property>
393 </widget> 397 </widget>
394 <spacer> 398 <spacer>
395 <property> 399 <property>
396 <name>name</name> 400 <name>name</name>
397 <cstring>Spacer6</cstring> 401 <cstring>Spacer6</cstring>
398 </property> 402 </property>
399 <property stdset="1"> 403 <property stdset="1">
400 <name>orientation</name> 404 <name>orientation</name>
401 <enum>Vertical</enum> 405 <enum>Vertical</enum>
402 </property> 406 </property>
403 <property stdset="1"> 407 <property stdset="1">
404 <name>sizeType</name> 408 <name>sizeType</name>
405 <enum>Expanding</enum> 409 <enum>Expanding</enum>
406 </property> 410 </property>
407 <property> 411 <property>
408 <name>sizeHint</name> 412 <name>sizeHint</name>
409 <size> 413 <size>
410 <width>20</width> 414 <width>20</width>
411 <height>20</height> 415 <height>20</height>
412 </size> 416 </size>
413 </property> 417 </property>
414 </spacer> 418 </spacer>
415 </vbox> 419 </vbox>
416 </widget> 420 </widget>
417 <widget> 421 <widget>
418 <class>QWidget</class> 422 <class>QWidget</class>
419 <property stdset="1"> 423 <property stdset="1">
420 <name>name</name> 424 <name>name</name>
421 <cstring>tab</cstring> 425 <cstring>tab</cstring>
422 </property> 426 </property>
423 <attribute> 427 <attribute>
424 <name>title</name> 428 <name>title</name>
425 <string>Network</string> 429 <string>Network</string>
426 </attribute> 430 </attribute>
427 <vbox> 431 <vbox>
428 <property stdset="1"> 432 <property stdset="1">
429 <name>margin</name> 433 <name>margin</name>
430 <number>2</number> 434 <number>2</number>
431 </property> 435 </property>
432 <property stdset="1"> 436 <property stdset="1">
433 <name>spacing</name> 437 <name>spacing</name>
434 <number>1</number> 438 <number>1</number>
435 </property> 439 </property>
436 <widget> 440 <widget>
437 <class>QLabel</class> 441 <class>QLabel</class>
438 <property stdset="1"> 442 <property stdset="1">
439 <name>name</name> 443 <name>name</name>
440 <cstring>NetStatLabel</cstring> 444 <cstring>NetStatLabel</cstring>
441 </property> 445 </property>
442 <property stdset="1"> 446 <property stdset="1">
443 <name>text</name> 447 <name>text</name>
444 <string>Network Status:</string> 448 <string>Network Status:</string>
445 </property> 449 </property>
446 </widget> 450 </widget>
447 <widget> 451 <widget>
448 <class>QLineEdit</class> 452 <class>QLineEdit</class>
449 <property stdset="1"> 453 <property stdset="1">
450 <name>name</name> 454 <name>name</name>
451 <cstring>NetStatText</cstring> 455 <cstring>NetStatText</cstring>
452 </property> 456 </property>
453 <property stdset="1"> 457 <property stdset="1">
454 <name>focusPolicy</name> 458 <name>focusPolicy</name>
455 <enum>NoFocus</enum> 459 <enum>NoFocus</enum>
456 </property> 460 </property>
457 </widget> 461 </widget>
458 <widget> 462 <widget>
459 <class>QLabel</class> 463 <class>QLabel</class>
460 <property stdset="1"> 464 <property stdset="1">
461 <name>name</name> 465 <name>name</name>
462 <cstring>NetworkLabel</cstring> 466 <cstring>NetworkLabel</cstring>
463 </property> 467 </property>
464 <property stdset="1"> 468 <property stdset="1">
465 <name>text</name> 469 <name>text</name>
466 <string>Current Network:</string> 470 <string>Current Network:</string>
467 </property> 471 </property>
468 </widget> 472 </widget>
469 <widget> 473 <widget>
470 <class>QLineEdit</class> 474 <class>QLineEdit</class>
471 <property stdset="1"> 475 <property stdset="1">
472 <name>name</name> 476 <name>name</name>
473 <cstring>NetworkText</cstring> 477 <cstring>NetworkText</cstring>
474 </property> 478 </property>
475 <property stdset="1"> 479 <property stdset="1">
476 <name>focusPolicy</name> 480 <name>focusPolicy</name>
477 <enum>NoFocus</enum> 481 <enum>NoFocus</enum>
478 </property> 482 </property>
479 </widget> 483 </widget>
480 <widget> 484 <widget>
481 <class>QLayoutWidget</class> 485 <class>QLayoutWidget</class>
482 <property stdset="1"> 486 <property stdset="1">
483 <name>name</name> 487 <name>name</name>
484 <cstring>Layout7</cstring> 488 <cstring>Layout7</cstring>
485 </property> 489 </property>
486 <property> 490 <property>
487 <name>layoutMargin</name> 491 <name>layoutMargin</name>
488 </property> 492 </property>
489 <hbox> 493 <hbox>
490 <property stdset="1"> 494 <property stdset="1">
491 <name>margin</name> 495 <name>margin</name>
492 <number>0</number> 496 <number>0</number>
493 </property> 497 </property>
494 <property stdset="1"> 498 <property stdset="1">
495 <name>spacing</name> 499 <name>spacing</name>
496 <number>1</number> 500 <number>1</number>
497 </property> 501 </property>
498 <widget> 502 <widget>
499 <class>QLabel</class> 503 <class>QLabel</class>
500 <property stdset="1"> 504 <property stdset="1">
501 <name>name</name> 505 <name>name</name>
502 <cstring>SigStrLabel</cstring> 506 <cstring>SigStrLabel</cstring>
503 </property> 507 </property>
504 <property stdset="1"> 508 <property stdset="1">
505 <name>text</name> 509 <name>text</name>
506 <string>Signal Strength:</string> 510 <string>Signal Strength:</string>
507 </property> 511 </property>
508 </widget> 512 </widget>
509 <widget> 513 <widget>
510 <class>QLineEdit</class> 514 <class>QLineEdit</class>
511 <property stdset="1"> 515 <property stdset="1">
512 <name>name</name> 516 <name>name</name>
513 <cstring>SigStrText</cstring> 517 <cstring>SigStrText</cstring>
514 </property> 518 </property>
515 <property stdset="1"> 519 <property stdset="1">
516 <name>focusPolicy</name> 520 <name>focusPolicy</name>
517 <enum>NoFocus</enum> 521 <enum>NoFocus</enum>
518 </property> 522 </property>
519 </widget> 523 </widget>
520 <widget> 524 <widget>
521 <class>QLabel</class> 525 <class>QLabel</class>
522 <property stdset="1"> 526 <property stdset="1">
523 <name>name</name> 527 <name>name</name>
524 <cstring>dB</cstring> 528 <cstring>dB</cstring>
525 </property> 529 </property>
526 <property stdset="1"> 530 <property stdset="1">
527 <name>text</name> 531 <name>text</name>
528 <string>dBm</string> 532 <string>dBm</string>
529 </property> 533 </property>
530 </widget> 534 </widget>
531 </hbox> 535 </hbox>
532 </widget> 536 </widget>
533 <widget> 537 <widget>
534 <class>QLayoutWidget</class> 538 <class>QLayoutWidget</class>
535 <property stdset="1"> 539 <property stdset="1">
536 <name>name</name> 540 <name>name</name>
537 <cstring>Layout9</cstring> 541 <cstring>Layout9</cstring>
538 </property> 542 </property>
539 <property> 543 <property>
540 <name>layoutMargin</name> 544 <name>layoutMargin</name>
541 </property> 545 </property>
542 <hbox> 546 <hbox>
543 <property stdset="1"> 547 <property stdset="1">
544 <name>margin</name> 548 <name>margin</name>
545 <number>0</number> 549 <number>0</number>
546 </property> 550 </property>
547 <property stdset="1"> 551 <property stdset="1">
548 <name>spacing</name> 552 <name>spacing</name>
549 <number>1</number> 553 <number>1</number>
550 </property> 554 </property>
551 <widget> 555 <widget>
552 <class>QLabel</class> 556 <class>QLabel</class>
553 <property stdset="1"> 557 <property stdset="1">
554 <name>name</name> 558 <name>name</name>
555 <cstring>AvailNetsLabel</cstring> 559 <cstring>AvailNetsLabel</cstring>
556 </property> 560 </property>
557 <property stdset="1"> 561 <property stdset="1">
558 <name>text</name> 562 <name>text</name>
559 <string>Available Networks:</string> 563 <string>Available Networks:</string>
560 </property> 564 </property>
561 </widget> 565 </widget>
562 <spacer> 566 <spacer>
563 <property> 567 <property>
564 <name>name</name> 568 <name>name</name>
565 <cstring>Spacer13</cstring> 569 <cstring>Spacer13</cstring>
566 </property> 570 </property>
567 <property stdset="1"> 571 <property stdset="1">
568 <name>orientation</name> 572 <name>orientation</name>
569 <enum>Horizontal</enum> 573 <enum>Horizontal</enum>
570 </property> 574 </property>
571 <property stdset="1"> 575 <property stdset="1">
572 <name>sizeType</name> 576 <name>sizeType</name>
573 <enum>Expanding</enum> 577 <enum>Expanding</enum>
574 </property> 578 </property>
575 <property> 579 <property>
576 <name>sizeHint</name> 580 <name>sizeHint</name>
577 <size> 581 <size>
578 <width>20</width> 582 <width>20</width>
579 <height>20</height> 583 <height>20</height>
580 </size> 584 </size>
581 </property> 585 </property>
582 </spacer> 586 </spacer>
583 <widget> 587 <widget>
584 <class>QPushButton</class> 588 <class>QPushButton</class>
585 <property stdset="1"> 589 <property stdset="1">
586 <name>name</name> 590 <name>name</name>
587 <cstring>ScanButton</cstring> 591 <cstring>ScanButton</cstring>
588 </property> 592 </property>
589 <property stdset="1"> 593 <property stdset="1">
590 <name>text</name> 594 <name>text</name>
591 <string>Scan</string> 595 <string>Scan</string>
592 </property> 596 </property>
593 </widget> 597 </widget>
594 </hbox> 598 </hbox>
595 </widget> 599 </widget>
596 <widget> 600 <widget>
597 <class>QListView</class> 601 <class>QListView</class>
598 <column> 602 <column>
599 <property> 603 <property>
600 <name>text</name> 604 <name>text</name>
601 <string>Network Name</string> 605 <string>Network Name</string>
602 </property> 606 </property>
603 <property> 607 <property>
604 <name>clickable</name> 608 <name>clickable</name>
605 <bool>true</bool> 609 <bool>true</bool>
606 </property> 610 </property>
607 <property> 611 <property>
608 <name>resizeable</name> 612 <name>resizeable</name>
609 <bool>true</bool> 613 <bool>true</bool>
610 </property> 614 </property>
611 </column> 615 </column>
612 <column> 616 <column>
613 <property> 617 <property>
614 <name>text</name> 618 <name>text</name>
615 <string>Status</string> 619 <string>Status</string>
616 </property> 620 </property>
617 <property> 621 <property>
618 <name>clickable</name> 622 <name>clickable</name>
619 <bool>true</bool> 623 <bool>true</bool>
620 </property> 624 </property>
621 <property> 625 <property>
622 <name>resizeable</name> 626 <name>resizeable</name>
623 <bool>true</bool> 627 <bool>true</bool>
624 </property> 628 </property>
625 </column> 629 </column>
626 <column> 630 <column>
627 <property> 631 <property>
628 <name>text</name> 632 <name>text</name>
629 <string>No.</string> 633 <string>No.</string>
630 </property> 634 </property>
631 <property> 635 <property>
632 <name>clickable</name> 636 <name>clickable</name>
633 <bool>true</bool> 637 <bool>true</bool>
634 </property> 638 </property>
635 <property> 639 <property>
636 <name>resizeable</name> 640 <name>resizeable</name>
637 <bool>true</bool> 641 <bool>true</bool>
638 </property> 642 </property>
639 </column> 643 </column>
640 <column> 644 <column>
641 <property> 645 <property>
642 <name>text</name> 646 <name>text</name>
643 <string>Shortname</string> 647 <string>Shortname</string>
644 </property> 648 </property>
645 <property> 649 <property>
646 <name>clickable</name> 650 <name>clickable</name>
647 <bool>true</bool> 651 <bool>true</bool>
648 </property> 652 </property>
649 <property> 653 <property>
650 <name>resizeable</name> 654 <name>resizeable</name>
651 <bool>true</bool> 655 <bool>true</bool>
652 </property> 656 </property>
653 </column> 657 </column>
654 <property stdset="1"> 658 <property stdset="1">
655 <name>name</name> 659 <name>name</name>
656 <cstring>NetworkList</cstring> 660 <cstring>NetworkList</cstring>
657 </property> 661 </property>
658 <property stdset="1"> 662 <property stdset="1">
659 <name>enabled</name> 663 <name>enabled</name>
660 <bool>false</bool> 664 <bool>false</bool>
661 </property> 665 </property>
662 <property stdset="1"> 666 <property stdset="1">
663 <name>sizePolicy</name> 667 <name>sizePolicy</name>
664 <sizepolicy> 668 <sizepolicy>
665 <hsizetype>7</hsizetype> 669 <hsizetype>7</hsizetype>
666 <vsizetype>7</vsizetype> 670 <vsizetype>7</vsizetype>
667 </sizepolicy> 671 </sizepolicy>
668 </property> 672 </property>
669 <property stdset="1"> 673 <property stdset="1">
670 <name>allColumnsShowFocus</name> 674 <name>allColumnsShowFocus</name>
671 <bool>true</bool> 675 <bool>true</bool>
672 </property> 676 </property>
673 </widget> 677 </widget>
674 <widget> 678 <widget>
675 <class>QLayoutWidget</class> 679 <class>QLayoutWidget</class>
676 <property stdset="1"> 680 <property stdset="1">
677 <name>name</name> 681 <name>name</name>
678 <cstring>Layout11</cstring> 682 <cstring>Layout11</cstring>
679 </property> 683 </property>
680 <hbox> 684 <hbox>
681 <property stdset="1"> 685 <property stdset="1">
682 <name>margin</name> 686 <name>margin</name>
683 <number>2</number> 687 <number>2</number>
684 </property> 688 </property>
685 <property stdset="1"> 689 <property stdset="1">
686 <name>spacing</name> 690 <name>spacing</name>
687 <number>1</number> 691 <number>1</number>
688 </property> 692 </property>
689 <spacer> 693 <spacer>
690 <property> 694 <property>
691 <name>name</name> 695 <name>name</name>
692 <cstring>Spacer14</cstring> 696 <cstring>Spacer14</cstring>
693 </property> 697 </property>
694 <property stdset="1"> 698 <property stdset="1">
695 <name>orientation</name> 699 <name>orientation</name>
696 <enum>Horizontal</enum> 700 <enum>Horizontal</enum>
697 </property> 701 </property>
698 <property stdset="1"> 702 <property stdset="1">
699 <name>sizeType</name> 703 <name>sizeType</name>
700 <enum>Expanding</enum> 704 <enum>Expanding</enum>
701 </property> 705 </property>
702 <property> 706 <property>
703 <name>sizeHint</name> 707 <name>sizeHint</name>
704 <size> 708 <size>
705 <width>20</width> 709 <width>20</width>
706 <height>20</height> 710 <height>20</height>
707 </size> 711 </size>
708 </property> 712 </property>
709 </spacer> 713 </spacer>
710 <widget> 714 <widget>
711 <class>QPushButton</class> 715 <class>QPushButton</class>
712 <property stdset="1"> 716 <property stdset="1">
713 <name>name</name> 717 <name>name</name>
714 <cstring>RegisterButton</cstring> 718 <cstring>RegisterButton</cstring>
715 </property> 719 </property>
716 <property stdset="1"> 720 <property stdset="1">
717 <name>enabled</name> 721 <name>enabled</name>
718 <bool>false</bool> 722 <bool>false</bool>
719 </property> 723 </property>
720 <property stdset="1"> 724 <property stdset="1">
721 <name>sizePolicy</name> 725 <name>sizePolicy</name>
722 <sizepolicy> 726 <sizepolicy>
723 <hsizetype>7</hsizetype> 727 <hsizetype>7</hsizetype>
724 <vsizetype>0</vsizetype> 728 <vsizetype>0</vsizetype>
725 </sizepolicy> 729 </sizepolicy>
726 </property> 730 </property>
727 <property stdset="1"> 731 <property stdset="1">
728 <name>text</name> 732 <name>text</name>
729 <string>Register</string> 733 <string>Register</string>
730 </property> 734 </property>
731 </widget> 735 </widget>
732 </hbox> 736 </hbox>
733 </widget> 737 </widget>
734 </vbox> 738 </vbox>
735 </widget> 739 </widget>
736 <widget> 740 <widget>
737 <class>QWidget</class> 741 <class>QWidget</class>
738 <property stdset="1"> 742 <property stdset="1">
739 <name>name</name> 743 <name>name</name>
740 <cstring>tab</cstring> 744 <cstring>tab</cstring>
741 </property> 745 </property>
742 <attribute> 746 <attribute>
743 <name>title</name> 747 <name>title</name>
744 <string>SMS</string> 748 <string>SMS</string>
745 </attribute> 749 </attribute>
746 <grid> 750 <grid>
747 <property stdset="1"> 751 <property stdset="1">
748 <name>margin</name> 752 <name>margin</name>
749 <number>-1</number> 753 <number>2</number>
750 </property> 754 </property>
751 <property stdset="1"> 755 <property stdset="1">
752 <name>spacing</name> 756 <name>spacing</name>
753 <number>-1</number> 757 <number>1</number>
754 </property> 758 </property>
755 <widget row="0" column="0" > 759 <widget row="0" column="0" rowspan="1" colspan="3" >
756 <class>QLayoutWidget</class> 760 <class>QLayoutWidget</class>
757 <property stdset="1"> 761 <property stdset="1">
758 <name>name</name> 762 <name>name</name>
759 <cstring>Layout6</cstring> 763 <cstring>Layout6</cstring>
760 </property> 764 </property>
761 <property> 765 <property>
762 <name>layoutSpacing</name> 766 <name>layoutSpacing</name>
763 </property> 767 </property>
764 <hbox> 768 <hbox>
765 <property stdset="1"> 769 <property stdset="1">
766 <name>margin</name> 770 <name>margin</name>
767 <number>0</number> 771 <number>0</number>
768 </property> 772 </property>
769 <property stdset="1"> 773 <property stdset="1">
770 <name>spacing</name> 774 <name>spacing</name>
771 <number>6</number> 775 <number>6</number>
772 </property> 776 </property>
773 <widget> 777 <widget>
774 <class>QLabel</class> 778 <class>QLabel</class>
775 <property stdset="1"> 779 <property stdset="1">
776 <name>name</name> 780 <name>name</name>
777 <cstring>SMSStoreLabel</cstring> 781 <cstring>SMSStoreLabel</cstring>
778 </property> 782 </property>
779 <property stdset="1"> 783 <property stdset="1">
780 <name>text</name> 784 <name>text</name>
781 <string>Store:</string> 785 <string>Store:</string>
782 </property> 786 </property>
783 </widget> 787 </widget>
784 <widget> 788 <widget>
785 <class>QComboBox</class> 789 <class>QComboBox</class>
786 <item> 790 <item>
787 <property> 791 <property>
788 <name>text</name> 792 <name>text</name>
789 <string>None</string> 793 <string>None</string>
790 </property> 794 </property>
791 </item> 795 </item>
792 <property stdset="1"> 796 <property stdset="1">
793 <name>name</name> 797 <name>name</name>
794 <cstring>SMSStoreList</cstring> 798 <cstring>SMSStoreList</cstring>
795 </property> 799 </property>
796 <property stdset="1"> 800 <property stdset="1">
797 <name>enabled</name> 801 <name>enabled</name>
798 <bool>true</bool> 802 <bool>true</bool>
799 </property> 803 </property>
800 </widget> 804 </widget>
801 <widget> 805 <widget>
802 <class>QLabel</class> 806 <class>QLabel</class>
803 <property stdset="1"> 807 <property stdset="1">
804 <name>name</name> 808 <name>name</name>
805 <cstring>SMSTypeLabel</cstring> 809 <cstring>SMSTypeLabel</cstring>
806 </property> 810 </property>
807 <property stdset="1"> 811 <property stdset="1">
808 <name>text</name> 812 <name>text</name>
809 <string>Type:</string> 813 <string>Type:</string>
810 </property> 814 </property>
811 </widget> 815 </widget>
812 <widget> 816 <widget>
813 <class>QComboBox</class> 817 <class>QComboBox</class>
814 <item> 818 <item>
815 <property> 819 <property>
816 <name>text</name> 820 <name>text</name>
817 <string>Incoming</string> 821 <string>Incoming</string>
818 </property> 822 </property>
819 </item> 823 </item>
820 <item> 824 <item>
821 <property> 825 <property>
822 <name>text</name> 826 <name>text</name>
823 <string>Outgoing</string> 827 <string>Outgoing</string>
824 </property> 828 </property>
825 </item> 829 </item>
826 <property stdset="1"> 830 <property stdset="1">
827 <name>name</name> 831 <name>name</name>
828 <cstring>SMSViewType</cstring> 832 <cstring>SMSViewType</cstring>
829 </property> 833 </property>
830 </widget> 834 </widget>
831 </hbox> 835 </hbox>
832 </widget> 836 </widget>
833 <widget row="1" column="0" > 837 <widget row="1" column="0" rowspan="1" colspan="3" >
834 <class>QListView</class> 838 <class>QListView</class>
835 <column> 839 <column>
836 <property> 840 <property>
837 <name>text</name> 841 <name>text</name>
838 <string>Number</string> 842 <string>Number</string>
839 </property> 843 </property>
840 <property> 844 <property>
841 <name>clickable</name> 845 <name>clickable</name>
842 <bool>true</bool> 846 <bool>true</bool>
843 </property> 847 </property>
844 <property> 848 <property>
845 <name>resizeable</name> 849 <name>resizeable</name>
846 <bool>true</bool> 850 <bool>true</bool>
847 </property> 851 </property>
848 </column> 852 </column>
849 <column> 853 <column>
850 <property> 854 <property>
851 <name>text</name> 855 <name>text</name>
852 <string>Date</string> 856 <string>Date</string>
853 </property> 857 </property>
854 <property> 858 <property>
855 <name>clickable</name> 859 <name>clickable</name>
856 <bool>true</bool> 860 <bool>true</bool>
857 </property> 861 </property>
858 <property> 862 <property>
859 <name>resizeable</name> 863 <name>resizeable</name>
860 <bool>true</bool> 864 <bool>true</bool>
861 </property> 865 </property>
862 </column> 866 </column>
863 <property stdset="1"> 867 <property stdset="1">
864 <name>name</name> 868 <name>name</name>
865 <cstring>SMSList</cstring> 869 <cstring>SMSList</cstring>
866 </property> 870 </property>
867 <property stdset="1"> 871 <property stdset="1">
868 <name>enabled</name> 872 <name>enabled</name>
869 <bool>false</bool> 873 <bool>false</bool>
870 </property> 874 </property>
871 <property stdset="1"> 875 <property stdset="1">
872 <name>allColumnsShowFocus</name> 876 <name>allColumnsShowFocus</name>
873 <bool>true</bool> 877 <bool>true</bool>
874 </property> 878 </property>
875 </widget> 879 </widget>
880 <widget row="3" column="0" rowspan="1" colspan="3" >
881 <class>QMultiLineEdit</class>
882 <property stdset="1">
883 <name>name</name>
884 <cstring>SMSText</cstring>
885 </property>
886 <property stdset="1">
887 <name>enabled</name>
888 <bool>false</bool>
889 </property>
890 <property stdset="1">
891 <name>hMargin</name>
892 <number>1</number>
893 </property>
894 <property stdset="1">
895 <name>wordWrap</name>
896 <enum>WidgetWidth</enum>
897 </property>
898 <property stdset="1">
899 <name>readOnly</name>
900 <bool>true</bool>
901 </property>
902 </widget>
876 <widget row="2" column="0" > 903 <widget row="2" column="0" >
877 <class>QLayoutWidget</class> 904 <class>QPushButton</class>
905 <property stdset="1">
906 <name>name</name>
907 <cstring>SMSDeleteButton</cstring>
908 </property>
909 <property stdset="1">
910 <name>text</name>
911 <string>Delete</string>
912 </property>
913 </widget>
914 <widget row="2" column="2" >
915 <class>QPushButton</class>
878 <property stdset="1"> 916 <property stdset="1">
879 <name>name</name> 917 <name>name</name>
880 <cstring>Layout15</cstring> 918 <cstring>SMSSendButton</cstring>
919 </property>
920 <property stdset="1">
921 <name>text</name>
922 <string>Send</string>
881 </property> 923 </property>
924 </widget>
925 <spacer row="2" column="1" >
882 <property> 926 <property>
883 <name>layoutMargin</name> 927 <name>name</name>
928 <cstring>Spacer6_2</cstring>
929 </property>
930 <property stdset="1">
931 <name>orientation</name>
932 <enum>Horizontal</enum>
933 </property>
934 <property stdset="1">
935 <name>sizeType</name>
936 <enum>Expanding</enum>
937 </property>
938 <property>
939 <name>sizeHint</name>
940 <size>
941 <width>20</width>
942 <height>20</height>
943 </size>
944 </property>
945 </spacer>
946 </grid>
947 </widget>
948 <widget>
949 <class>QWidget</class>
950 <property stdset="1">
951 <name>name</name>
952 <cstring>tab</cstring>
953 </property>
954 <attribute>
955 <name>title</name>
956 <string>New</string>
957 </attribute>
958 <grid>
959 <property stdset="1">
960 <name>margin</name>
961 <number>2</number>
962 </property>
963 <property stdset="1">
964 <name>spacing</name>
965 <number>1</number>
966 </property>
967 <widget row="0" column="0" rowspan="1" colspan="3" >
968 <class>QLabel</class>
969 <property stdset="1">
970 <name>name</name>
971 <cstring>NewSMSMessageLabel</cstring>
972 </property>
973 <property stdset="1">
974 <name>text</name>
975 <string>Message:</string>
884 </property> 976 </property>
885 <hbox>
886 <property stdset="1">
887 <name>margin</name>
888 <number>0</number>
889 </property>
890 <property stdset="1">
891 <name>spacing</name>
892 <number>1</number>
893 </property>
894 <widget>
895 <class>QPushButton</class>
896 <property stdset="1">
897 <name>name</name>
898 <cstring>SMSDeleteButton</cstring>
899 </property>
900 <property stdset="1">
901 <name>text</name>
902 <string>Delete</string>
903 </property>
904 </widget>
905 <widget>
906 <class>QPushButton</class>
907 <property stdset="1">
908 <name>name</name>
909 <cstring>SMSSendButton</cstring>
910 </property>
911 <property stdset="1">
912 <name>text</name>
913 <string>Send</string>
914 </property>
915 </widget>
916 <widget>
917 <class>QPushButton</class>
918 <property stdset="1">
919 <name>name</name>
920 <cstring>SMSNewButton</cstring>
921 </property>
922 <property stdset="1">
923 <name>text</name>
924 <string>New</string>
925 </property>
926 </widget>
927 </hbox>
928 </widget> 977 </widget>
929 <widget row="3" column="0" > 978 <widget row="3" column="0" >
979 <class>QLabel</class>
980 <property stdset="1">
981 <name>name</name>
982 <cstring>NewSMSToLabel</cstring>
983 </property>
984 <property stdset="1">
985 <name>text</name>
986 <string>To:</string>
987 </property>
988 </widget>
989 <widget row="3" column="1" rowspan="1" colspan="4" >
990 <class>QComboBox</class>
991 <property stdset="1">
992 <name>name</name>
993 <cstring>NewSMSToBox</cstring>
994 </property>
995 <property stdset="1">
996 <name>editable</name>
997 <bool>true</bool>
998 </property>
999 <property stdset="1">
1000 <name>duplicatesEnabled</name>
1001 <bool>false</bool>
1002 </property>
1003 </widget>
1004 <widget row="1" column="0" rowspan="1" colspan="5" >
930 <class>QMultiLineEdit</class> 1005 <class>QMultiLineEdit</class>
931 <property stdset="1"> 1006 <property stdset="1">
932 <name>name</name> 1007 <name>name</name>
933 <cstring>SMSText</cstring> 1008 <cstring>NewSMSText</cstring>
934 </property> 1009 </property>
935 <property stdset="1"> 1010 <property stdset="1">
936 <name>enabled</name> 1011 <name>enabled</name>
937 <bool>false</bool> 1012 <bool>true</bool>
938 </property> 1013 </property>
939 <property stdset="1"> 1014 <property stdset="1">
940 <name>hMargin</name> 1015 <name>hMargin</name>
941 <number>1</number> 1016 <number>1</number>
942 </property> 1017 </property>
943 <property stdset="1"> 1018 <property stdset="1">
944 <name>wordWrap</name> 1019 <name>wordWrap</name>
945 <enum>WidgetWidth</enum> 1020 <enum>WidgetWidth</enum>
946 </property> 1021 </property>
947 <property stdset="1"> 1022 <property stdset="1">
948 <name>readOnly</name> 1023 <name>readOnly</name>
949 <bool>true</bool> 1024 <bool>false</bool>
1025 </property>
1026 </widget>
1027 <widget row="4" column="4" >
1028 <class>QPushButton</class>
1029 <property stdset="1">
1030 <name>name</name>
1031 <cstring>NewSMSSendButton</cstring>
1032 </property>
1033 <property stdset="1">
1034 <name>text</name>
1035 <string>Send</string>
1036 </property>
1037 </widget>
1038 <widget row="0" column="3" rowspan="1" colspan="2" >
1039 <class>QLabel</class>
1040 <property stdset="1">
1041 <name>name</name>
1042 <cstring>NewSMSStatusLabel</cstring>
1043 </property>
1044 <property stdset="1">
1045 <name>text</name>
1046 <string></string>
1047 </property>
1048 </widget>
1049 <widget row="4" column="2" rowspan="1" colspan="2" >
1050 <class>QPushButton</class>
1051 <property stdset="1">
1052 <name>name</name>
1053 <cstring>NewSMSSaveButton</cstring>
1054 </property>
1055 <property stdset="1">
1056 <name>enabled</name>
1057 <bool>false</bool>
1058 </property>
1059 <property stdset="1">
1060 <name>text</name>
1061 <string>Save</string>
1062 </property>
1063 </widget>
1064 <widget row="4" column="0" rowspan="1" colspan="2" >
1065 <class>QPushButton</class>
1066 <property stdset="1">
1067 <name>name</name>
1068 <cstring>NewSMSClearButton</cstring>
1069 </property>
1070 <property stdset="1">
1071 <name>text</name>
1072 <string>Clear</string>
950 </property> 1073 </property>
951 </widget> 1074 </widget>
952 </grid> 1075 </grid>
953 </widget> 1076 </widget>
954 </widget> 1077 </widget>
955 </vbox> 1078 </grid>
956</widget> 1079</widget>
957</UI> 1080</UI>