summaryrefslogtreecommitdiff
path: root/noncore/unsupported/gsmtool
authordwmw2 <dwmw2>2002-04-04 10:23:47 (UTC)
committer dwmw2 <dwmw2>2002-04-04 10:23:47 (UTC)
commit0ffdfb93cd33ae975822701e16421990e416c218 (patch) (unidiff)
tree0682d5e14c53c7fc9d0171160a92161e249de473 /noncore/unsupported/gsmtool
parent431ff3f7fd9996236c6d82a3644b3915bd4c7b38 (diff)
downloadopie-0ffdfb93cd33ae975822701e16421990e416c218.zip
opie-0ffdfb93cd33ae975822701e16421990e416c218.tar.gz
opie-0ffdfb93cd33ae975822701e16421990e416c218.tar.bz2
Wheee. Now shows SMS messages
Diffstat (limited to 'noncore/unsupported/gsmtool') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/gsmtool/gsmtool.cpp51
-rw-r--r--noncore/unsupported/gsmtool/gsmtool.h1
-rw-r--r--noncore/unsupported/gsmtool/gsmtoolbase.ui44
3 files changed, 79 insertions, 17 deletions
diff --git a/noncore/unsupported/gsmtool/gsmtool.cpp b/noncore/unsupported/gsmtool/gsmtool.cpp
index c3f9482..8273461 100644
--- a/noncore/unsupported/gsmtool/gsmtool.cpp
+++ b/noncore/unsupported/gsmtool/gsmtool.cpp
@@ -1,60 +1,62 @@
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>
10
9#include <termios.h> 11#include <termios.h>
10 12
11#include <gsmlib/gsm_me_ta.h> 13#include <gsmlib/gsm_me_ta.h>
12#include <gsmlib/gsm_unix_serial.h> 14#include <gsmlib/gsm_unix_serial.h>
13#include <gsmlib/gsm_sms.h> 15#include <gsmlib/gsm_sms.h>
14#include <gsmlib/gsm_sorted_sms_store.h> 16#include <gsmlib/gsm_sorted_sms_store.h>
15 17
16using namespace gsmlib; 18using namespace gsmlib;
17 19
18 20
19/* 21/*
20 * Constructs a GSMTool which is a child of 'parent', with the 22 * Constructs a GSMTool which is a child of 'parent', with the
21 * name 'name' and widget flags set to 'f' 23 * name 'name' and widget flags set to 'f'
22 */ 24 */
23GSMTool::GSMTool( QWidget* parent, const char* name, WFlags fl ) 25GSMTool::GSMTool( QWidget* parent, const char* name, WFlags fl )
24 : GSMToolBase( parent, name, fl ) 26 : GSMToolBase( parent, name, fl )
25{ 27{
26 devicelocked = 0; 28 devicelocked = 0;
27 me = NULL; 29 me = NULL;
28 sms_store = NULL; 30 sms_store = NULL;
29 setConnected(FALSE); 31 setConnected(FALSE);
30 /* FIXME: Persistent settings for device/baudrate */ 32 /* FIXME: Persistent settings for device/baudrate */
31 connect(ConnectButton, SIGNAL(clicked()), this, SLOT(doConnectButton())); 33 connect(ConnectButton, SIGNAL(clicked()), this, SLOT(doConnectButton()));
32 connect(ScanButton, SIGNAL(clicked()), this, SLOT(doScanButton())); 34 connect(ScanButton, SIGNAL(clicked()), this, SLOT(doScanButton()));
33 connect(TabWidget2, SIGNAL(currentChanged(QWidget *)), this, SLOT(doTabChanged())); 35 connect(TabWidget2, SIGNAL(currentChanged(QWidget *)), this, SLOT(doTabChanged()));
34 connect(SMSStoreList, SIGNAL(activated(int)), this, SLOT(doSMSStoreChanged())); 36 connect(SMSStoreList, SIGNAL(activated(int)), this, SLOT(doSMSStoreChanged()));
35 connect(SMSViewType, SIGNAL(activated(int)), this, SLOT(doSMSTypeChanged())); 37 connect(SMSViewType, SIGNAL(activated(int)), this, SLOT(doSMSTypeChanged()));
36 38 connect(SMSList, SIGNAL(selectionChanged(QListViewItem *)), this, SLOT(doSelectedSMSChanged(QListViewItem *)));
37 timerid = -1; // Is this not possible normally? 39 timerid = -1; // Is this not possible normally?
38} 40}
39 41
40/* 42/*
41 * Destroys the object and frees any allocated resources 43 * Destroys the object and frees any allocated resources
42 */ 44 */
43GSMTool::~GSMTool() 45GSMTool::~GSMTool()
44{ 46{
45 // no need to delete child widgets, Qt does it all for us 47 // no need to delete child widgets, Qt does it all for us
46 if (devicelocked) 48 if (devicelocked)
47 unlockDevice(); 49 unlockDevice();
48} 50}
49const speed_t GSMTool::baudrates[12] = { 51const speed_t GSMTool::baudrates[12] = {
50 B300, B600, B1200, B2400, B4800, B9600, B19200, 52 B300, B600, B1200, B2400, B4800, B9600, B19200,
51 B38400, B57600, B115200, B230400, B460800 53 B38400, B57600, B115200, B230400, B460800
52}; 54};
53 55
54int GSMTool::lockDevice( ) 56int GSMTool::lockDevice( )
55{ 57{
56 devicelocked = 1; 58 devicelocked = 1;
57 /* FIXME */ 59 /* FIXME */
58 return 0; 60 return 0;
59} 61}
60 62
@@ -118,87 +120,122 @@ void GSMTool::timerEvent( QTimerEvent * )
118 qDebug("get sig str"); 120 qDebug("get sig str");
119 int csq = me->getSignalStrength(); 121 int csq = me->getSignalStrength();
120 if (csq == 0) { 122 if (csq == 0) {
121 SigStrText->setText("<= -113"); 123 SigStrText->setText("<= -113");
122 dB->setEnabled(TRUE); 124 dB->setEnabled(TRUE);
123 SigStrLabel->setEnabled(TRUE); 125 SigStrLabel->setEnabled(TRUE);
124 } else if (csq == 99) { 126 } else if (csq == 99) {
125 SigStrText->setText("Unknown"); 127 SigStrText->setText("Unknown");
126 dB->setEnabled(FALSE); 128 dB->setEnabled(FALSE);
127 SigStrLabel->setEnabled(FALSE); 129 SigStrLabel->setEnabled(FALSE);
128 } else { 130 } else {
129 char buf[6]; 131 char buf[6];
130 sprintf(buf, "%d", -113 + (2*csq)); 132 sprintf(buf, "%d", -113 + (2*csq));
131 SigStrText->setText(buf); 133 SigStrText->setText(buf);
132 dB->setEnabled(TRUE); 134 dB->setEnabled(TRUE);
133 SigStrLabel->setEnabled(TRUE); 135 SigStrLabel->setEnabled(TRUE);
134 } 136 }
135 } 137 }
136} 138}
137 139
138void GSMTool::doSMSStoreChanged() 140void GSMTool::doSMSStoreChanged()
139{ 141{
140 const char *storename = SMSStoreList->currentText().ascii(); 142 const char *storename = SMSStoreList->currentText().ascii();
141 qDebug("Store Changed to '%s'", storename); 143 qDebug("Store Changed to '%s'", storename);
142 try { 144 if (!strcmp(storename, "None")) {
145 sms_store = NULL;
146 } else try {
143 sms_store = me->getSMSStore(storename); 147 sms_store = me->getSMSStore(storename);
144 148
145 qDebug("got store of size %d", sms_store->size()); 149 qDebug("got store of size %d", sms_store->size());
146 } catch (GsmException) { 150 } catch (GsmException) {
147 sms_store = NULL; 151 sms_store = NULL;
148 qDebug("get store failed"); 152 qDebug("get store failed");
149 } 153 }
154
155 SMSList->setEnabled(!(sms_store == NULL));
150 doSMSTypeChanged(); 156 doSMSTypeChanged();
151} 157}
152 158
153void GSMTool::doSMSTypeChanged() 159void GSMTool::doSMSTypeChanged()
154{ 160{
155 int direction = SMSViewType->currentItem(); 161 int direction = SMSViewType->currentItem();
156 qDebug("direction %s\n", direction?"outgoing":"incoming"); 162 qDebug("direction %s\n", direction?"outgoing":"incoming");
157 163
158 SMSList->clear(); 164 SMSList->clear();
165 doSelectedSMSChanged(NULL);
166
159 if (sms_store == NULL) 167 if (sms_store == NULL)
160 return; 168 return;
161 for (int i = 0; i < sms_store->size(); i++) { 169 for (int i = 0; i < sms_store->size(); i++) {
162 qDebug("Message %d", i); 170 qDebug("Message %d", i);
163 qDebug("Is%sempty", sms_store()[i].empty()?" ":" not "); 171 qDebug("Is%sempty", sms_store()[i].empty()?" ":" not ");
164 if (sms_store()[i].empty()) 172 if (sms_store()[i].empty())
165 continue; 173 continue;
166 174
167 qDebug("Status %d", sms_store()[i].status()); 175 qDebug("Status %d", sms_store()[i].status());
168 SMSMessageRef message = sms_store()[i].message(); 176 SMSMessageRef message = sms_store()[i].message();
169 qDebug("Got message."); 177 qDebug("Got message.");
170 178
171#if 0 // WTF does this die? Did I mention that gsmlib needs rewriting in a sane language? 179 // qDebug(message->toString().c_str());
172 qDebug(message->toString().c_str());
173 if (direction == message->messageType()) { 180 if (direction == message->messageType()) {
174 qDebug("yes\n"); 181 qDebug("yes\n");
175 new QListViewItem(SMSList, "xx", message->address()._number.c_str()); 182 char buf[3];
176 } else qDebug("no. dir %d, type %d\n", direction, message->messageType()); 183 snprintf(buf, 3, "%d", i);
177#endif 184 new QListViewItem(SMSList, message->address()._number.c_str(), message->serviceCentreTimestamp().toString().c_str(), buf);
185 }
178 } 186 }
179} 187}
180 188
189void GSMTool::doSelectedSMSChanged(QListViewItem *item)
190{
191 qDebug("message changed\n");
192
193 if (!item || sms_store == NULL) {
194 SMSText->setText("");
195 SMSText->setEnabled(FALSE);
196 SMSDeleteButton->setEnabled(FALSE);
197 SMSSendButton->setEnabled(FALSE);
198 return;
199 }
200 /* ARGH. This sucks. Surely there's an app-private pointer in the
201 QListViewItem that I've failed to notice?
202
203 SMSMessageRef message = *(SMSMessageRef*)item->private;
204 */
205 qDebug("item %p\n", item);
206
207 qDebug("text(2) is %s\n", item->text(2).ascii());
208 int index = atoi(item->text(2).ascii());
209 qDebug("index %d\n", index);
210 SMSMessageRef message = sms_store()[index].message();
211
212 SMSText->setText(message->userData().c_str());
213 SMSText->setEnabled(TRUE);
214 SMSDeleteButton->setEnabled(TRUE);
215 SMSSendButton->setEnabled(TRUE);
216
217}
181void GSMTool::doScanButton() 218void GSMTool::doScanButton()
182{ 219{
183 qDebug("ScanButton"); 220 qDebug("ScanButton");
184 221
185 NetworkList->setEnabled(FALSE); 222 NetworkList->setEnabled(FALSE);
186 AvailNetsLabel->setEnabled(FALSE); 223 AvailNetsLabel->setEnabled(FALSE);
187 NetworkList->clear(); 224 NetworkList->clear();
188 new QListViewItem(NetworkList, "Scanning..."); 225 new QListViewItem(NetworkList, "Scanning...");
189 226
190 vector<OPInfo> opis; 227 vector<OPInfo> opis;
191 228
192 try { 229 try {
193 opis = me->getAvailableOPInfo(); 230 opis = me->getAvailableOPInfo();
194 } catch (GsmException) { 231 } catch (GsmException) {
195 NetworkList->clear(); 232 NetworkList->clear();
196 new QListViewItem(NetworkList, "Scan failed..."); 233 new QListViewItem(NetworkList, "Scan failed...");
197 return; 234 return;
198 } 235 }
199 236
200 NetworkList->clear(); 237 NetworkList->clear();
201 for (vector<OPInfo>::iterator i = opis.begin(); i != opis.end(); ++i) { 238 for (vector<OPInfo>::iterator i = opis.begin(); i != opis.end(); ++i) {
202 char *statustext; 239 char *statustext;
203 switch (i->_status) { 240 switch (i->_status) {
204 241
diff --git a/noncore/unsupported/gsmtool/gsmtool.h b/noncore/unsupported/gsmtool/gsmtool.h
index 49387d9..b8d9a86 100644
--- a/noncore/unsupported/gsmtool/gsmtool.h
+++ b/noncore/unsupported/gsmtool/gsmtool.h
@@ -2,43 +2,44 @@
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 8
9class GSMTool : public GSMToolBase 9class GSMTool : public GSMToolBase
10{ 10{
11 Q_OBJECT 11 Q_OBJECT
12 12
13public: 13public:
14 GSMTool( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); 14 GSMTool( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
15 ~GSMTool(); 15 ~GSMTool();
16 16
17protected: 17protected:
18 void timerEvent(QTimerEvent *te ); 18 void timerEvent(QTimerEvent *te );
19 19
20private slots: 20private slots:
21 void doConnectButton(); 21 void doConnectButton();
22 void doScanButton(); 22 void doScanButton();
23 void doTabChanged(); 23 void doTabChanged();
24 void doSMSStoreChanged(); 24 void doSMSStoreChanged();
25 void doSMSTypeChanged(); 25 void doSMSTypeChanged();
26 void doSelectedSMSChanged(QListViewItem *);
26 27
27private: 28private:
28 static const speed_t baudrates[]; 29 static const speed_t baudrates[];
29 int devicelocked; 30 int devicelocked;
30 int timerid; 31 int timerid;
31 32
32 gsmlib::MeTa *me; 33 gsmlib::MeTa *me;
33 gsmlib::SMSStoreRef sms_store; 34 gsmlib::SMSStoreRef sms_store;
34 35
35 char *devicename; 36 char *devicename;
36 speed_t baudrate; 37 speed_t baudrate;
37 38
38 int lockDevice( ); 39 int lockDevice( );
39 void unlockDevice( ); 40 void unlockDevice( );
40 41
41 void setConnected( bool conn ); 42 void setConnected( bool conn );
42}; 43};
43 44
44#endif // EXAMPLE_H 45#endif // EXAMPLE_H
diff --git a/noncore/unsupported/gsmtool/gsmtoolbase.ui b/noncore/unsupported/gsmtool/gsmtoolbase.ui
index 340f26c..69480cd 100644
--- a/noncore/unsupported/gsmtool/gsmtoolbase.ui
+++ b/noncore/unsupported/gsmtool/gsmtoolbase.ui
@@ -1,38 +1,38 @@
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>309</width> 14 <width>371</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 <vbox>
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>
38 <class>QTabWidget</class> 38 <class>QTabWidget</class>
@@ -645,48 +645,52 @@
645 <property> 645 <property>
646 <name>clickable</name> 646 <name>clickable</name>
647 <bool>true</bool> 647 <bool>true</bool>
648 </property> 648 </property>
649 <property> 649 <property>
650 <name>resizeable</name> 650 <name>resizeable</name>
651 <bool>true</bool> 651 <bool>true</bool>
652 </property> 652 </property>
653 </column> 653 </column>
654 <property stdset="1"> 654 <property stdset="1">
655 <name>name</name> 655 <name>name</name>
656 <cstring>NetworkList</cstring> 656 <cstring>NetworkList</cstring>
657 </property> 657 </property>
658 <property stdset="1"> 658 <property stdset="1">
659 <name>enabled</name> 659 <name>enabled</name>
660 <bool>false</bool> 660 <bool>false</bool>
661 </property> 661 </property>
662 <property stdset="1"> 662 <property stdset="1">
663 <name>sizePolicy</name> 663 <name>sizePolicy</name>
664 <sizepolicy> 664 <sizepolicy>
665 <hsizetype>7</hsizetype> 665 <hsizetype>7</hsizetype>
666 <vsizetype>7</vsizetype> 666 <vsizetype>7</vsizetype>
667 </sizepolicy> 667 </sizepolicy>
668 </property> 668 </property>
669 <property stdset="1">
670 <name>allColumnsShowFocus</name>
671 <bool>true</bool>
672 </property>
669 </widget> 673 </widget>
670 <widget> 674 <widget>
671 <class>QLayoutWidget</class> 675 <class>QLayoutWidget</class>
672 <property stdset="1"> 676 <property stdset="1">
673 <name>name</name> 677 <name>name</name>
674 <cstring>Layout11</cstring> 678 <cstring>Layout11</cstring>
675 </property> 679 </property>
676 <hbox> 680 <hbox>
677 <property stdset="1"> 681 <property stdset="1">
678 <name>margin</name> 682 <name>margin</name>
679 <number>2</number> 683 <number>2</number>
680 </property> 684 </property>
681 <property stdset="1"> 685 <property stdset="1">
682 <name>spacing</name> 686 <name>spacing</name>
683 <number>1</number> 687 <number>1</number>
684 </property> 688 </property>
685 <spacer> 689 <spacer>
686 <property> 690 <property>
687 <name>name</name> 691 <name>name</name>
688 <cstring>Spacer14</cstring> 692 <cstring>Spacer14</cstring>
689 </property> 693 </property>
690 <property stdset="1"> 694 <property stdset="1">
691 <name>orientation</name> 695 <name>orientation</name>
692 <enum>Horizontal</enum> 696 <enum>Horizontal</enum>
@@ -718,58 +722,58 @@
718 <sizepolicy> 722 <sizepolicy>
719 <hsizetype>7</hsizetype> 723 <hsizetype>7</hsizetype>
720 <vsizetype>0</vsizetype> 724 <vsizetype>0</vsizetype>
721 </sizepolicy> 725 </sizepolicy>
722 </property> 726 </property>
723 <property stdset="1"> 727 <property stdset="1">
724 <name>text</name> 728 <name>text</name>
725 <string>Register</string> 729 <string>Register</string>
726 </property> 730 </property>
727 </widget> 731 </widget>
728 </hbox> 732 </hbox>
729 </widget> 733 </widget>
730 </vbox> 734 </vbox>
731 </widget> 735 </widget>
732 <widget> 736 <widget>
733 <class>QWidget</class> 737 <class>QWidget</class>
734 <property stdset="1"> 738 <property stdset="1">
735 <name>name</name> 739 <name>name</name>
736 <cstring>tab</cstring> 740 <cstring>tab</cstring>
737 </property> 741 </property>
738 <attribute> 742 <attribute>
739 <name>title</name> 743 <name>title</name>
740 <string>SMS</string> 744 <string>SMS</string>
741 </attribute> 745 </attribute>
742 <vbox> 746 <grid>
743 <property stdset="1"> 747 <property stdset="1">
744 <name>margin</name> 748 <name>margin</name>
745 <number>11</number> 749 <number>11</number>
746 </property> 750 </property>
747 <property stdset="1"> 751 <property stdset="1">
748 <name>spacing</name> 752 <name>spacing</name>
749 <number>6</number> 753 <number>6</number>
750 </property> 754 </property>
751 <widget> 755 <widget row="0" column="0" >
752 <class>QLayoutWidget</class> 756 <class>QLayoutWidget</class>
753 <property stdset="1"> 757 <property stdset="1">
754 <name>name</name> 758 <name>name</name>
755 <cstring>Layout6</cstring> 759 <cstring>Layout6</cstring>
756 </property> 760 </property>
757 <hbox> 761 <hbox>
758 <property stdset="1"> 762 <property stdset="1">
759 <name>margin</name> 763 <name>margin</name>
760 <number>0</number> 764 <number>0</number>
761 </property> 765 </property>
762 <property stdset="1"> 766 <property stdset="1">
763 <name>spacing</name> 767 <name>spacing</name>
764 <number>6</number> 768 <number>6</number>
765 </property> 769 </property>
766 <widget> 770 <widget>
767 <class>QLabel</class> 771 <class>QLabel</class>
768 <property stdset="1"> 772 <property stdset="1">
769 <name>name</name> 773 <name>name</name>
770 <cstring>SMSStoreLabel</cstring> 774 <cstring>SMSStoreLabel</cstring>
771 </property> 775 </property>
772 <property stdset="1"> 776 <property stdset="1">
773 <name>text</name> 777 <name>text</name>
774 <string>Store:</string> 778 <string>Store:</string>
775 </property> 779 </property>
@@ -802,84 +806,92 @@
802 <string>Type:</string> 806 <string>Type:</string>
803 </property> 807 </property>
804 </widget> 808 </widget>
805 <widget> 809 <widget>
806 <class>QComboBox</class> 810 <class>QComboBox</class>
807 <item> 811 <item>
808 <property> 812 <property>
809 <name>text</name> 813 <name>text</name>
810 <string>Incoming</string> 814 <string>Incoming</string>
811 </property> 815 </property>
812 </item> 816 </item>
813 <item> 817 <item>
814 <property> 818 <property>
815 <name>text</name> 819 <name>text</name>
816 <string>Outgoing</string> 820 <string>Outgoing</string>
817 </property> 821 </property>
818 </item> 822 </item>
819 <property stdset="1"> 823 <property stdset="1">
820 <name>name</name> 824 <name>name</name>
821 <cstring>SMSViewType</cstring> 825 <cstring>SMSViewType</cstring>
822 </property> 826 </property>
823 </widget> 827 </widget>
824 </hbox> 828 </hbox>
825 </widget> 829 </widget>
826 <widget> 830 <widget row="1" column="0" >
827 <class>QListView</class> 831 <class>QListView</class>
828 <column> 832 <column>
829 <property> 833 <property>
830 <name>text</name> 834 <name>text</name>
831 <string>Date</string> 835 <string>Number</string>
832 </property> 836 </property>
833 <property> 837 <property>
834 <name>clickable</name> 838 <name>clickable</name>
835 <bool>true</bool> 839 <bool>true</bool>
836 </property> 840 </property>
837 <property> 841 <property>
838 <name>resizeable</name> 842 <name>resizeable</name>
839 <bool>true</bool> 843 <bool>true</bool>
840 </property> 844 </property>
841 </column> 845 </column>
842 <column> 846 <column>
843 <property> 847 <property>
844 <name>text</name> 848 <name>text</name>
845 <string>Number</string> 849 <string>Date</string>
846 </property> 850 </property>
847 <property> 851 <property>
848 <name>clickable</name> 852 <name>clickable</name>
849 <bool>true</bool> 853 <bool>true</bool>
850 </property> 854 </property>
851 <property> 855 <property>
852 <name>resizeable</name> 856 <name>resizeable</name>
853 <bool>true</bool> 857 <bool>true</bool>
854 </property> 858 </property>
855 </column> 859 </column>
856 <property stdset="1"> 860 <property stdset="1">
857 <name>name</name> 861 <name>name</name>
858 <cstring>SMSList</cstring> 862 <cstring>SMSList</cstring>
859 </property> 863 </property>
864 <property stdset="1">
865 <name>enabled</name>
866 <bool>false</bool>
867 </property>
868 <property stdset="1">
869 <name>allColumnsShowFocus</name>
870 <bool>true</bool>
871 </property>
860 </widget> 872 </widget>
861 <widget> 873 <widget row="2" column="0" >
862 <class>QLayoutWidget</class> 874 <class>QLayoutWidget</class>
863 <property stdset="1"> 875 <property stdset="1">
864 <name>name</name> 876 <name>name</name>
865 <cstring>Layout15</cstring> 877 <cstring>Layout15</cstring>
866 </property> 878 </property>
867 <property> 879 <property>
868 <name>layoutMargin</name> 880 <name>layoutMargin</name>
869 </property> 881 </property>
870 <hbox> 882 <hbox>
871 <property stdset="1"> 883 <property stdset="1">
872 <name>margin</name> 884 <name>margin</name>
873 <number>0</number> 885 <number>0</number>
874 </property> 886 </property>
875 <property stdset="1"> 887 <property stdset="1">
876 <name>spacing</name> 888 <name>spacing</name>
877 <number>1</number> 889 <number>1</number>
878 </property> 890 </property>
879 <widget> 891 <widget>
880 <class>QPushButton</class> 892 <class>QPushButton</class>
881 <property stdset="1"> 893 <property stdset="1">
882 <name>name</name> 894 <name>name</name>
883 <cstring>SMSDeleteButton</cstring> 895 <cstring>SMSDeleteButton</cstring>
884 </property> 896 </property>
885 <property stdset="1"> 897 <property stdset="1">
@@ -890,37 +902,49 @@
890 <widget> 902 <widget>
891 <class>QPushButton</class> 903 <class>QPushButton</class>
892 <property stdset="1"> 904 <property stdset="1">
893 <name>name</name> 905 <name>name</name>
894 <cstring>SMSSendButton</cstring> 906 <cstring>SMSSendButton</cstring>
895 </property> 907 </property>
896 <property stdset="1"> 908 <property stdset="1">
897 <name>text</name> 909 <name>text</name>
898 <string>Send</string> 910 <string>Send</string>
899 </property> 911 </property>
900 </widget> 912 </widget>
901 <widget> 913 <widget>
902 <class>QPushButton</class> 914 <class>QPushButton</class>
903 <property stdset="1"> 915 <property stdset="1">
904 <name>name</name> 916 <name>name</name>
905 <cstring>SMSNewButton</cstring> 917 <cstring>SMSNewButton</cstring>
906 </property> 918 </property>
907 <property stdset="1"> 919 <property stdset="1">
908 <name>text</name> 920 <name>text</name>
909 <string>New</string> 921 <string>New</string>
910 </property> 922 </property>
911 </widget> 923 </widget>
912 </hbox> 924 </hbox>
913 </widget> 925 </widget>
914 <widget> 926 <widget row="3" column="0" >
915 <class>QTextBrowser</class> 927 <class>QMultiLineEdit</class>
916 <property stdset="1"> 928 <property stdset="1">
917 <name>name</name> 929 <name>name</name>
918 <cstring>SMSText</cstring> 930 <cstring>SMSText</cstring>
919 </property> 931 </property>
932 <property stdset="1">
933 <name>enabled</name>
934 <bool>false</bool>
935 </property>
936 <property stdset="1">
937 <name>wordWrap</name>
938 <enum>WidgetWidth</enum>
939 </property>
940 <property stdset="1">
941 <name>readOnly</name>
942 <bool>true</bool>
943 </property>
920 </widget> 944 </widget>
921 </vbox> 945 </grid>
922 </widget> 946 </widget>
923 </widget> 947 </widget>
924 </vbox> 948 </vbox>
925</widget> 949</widget>
926</UI> 950</UI>