summaryrefslogtreecommitdiff
authorharlekin <harlekin>2002-06-14 10:42:07 (UTC)
committer harlekin <harlekin>2002-06-14 10:42:07 (UTC)
commit21742ad6d7b1b4d1bc00ca5025a4134d080924c1 (patch) (side-by-side diff)
tree4e147f45afec7a9876090047196b6a4ec0f4e466
parenta014866573fc86bf63544d1f692ccdd94c0d104f (diff)
downloadopie-21742ad6d7b1b4d1bc00ca5025a4134d080924c1.zip
opie-21742ad6d7b1b4d1bc00ca5025a4134d080924c1.tar.gz
opie-21742ad6d7b1b4d1bc00ca5025a4134d080924c1.tar.bz2
update
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/applets/obex/obeximpl.cc3
-rw-r--r--core/applets/obex/obexinc.ui146
2 files changed, 44 insertions, 105 deletions
diff --git a/core/applets/obex/obeximpl.cc b/core/applets/obex/obeximpl.cc
index 7df933a..da47e5b 100644
--- a/core/applets/obex/obeximpl.cc
+++ b/core/applets/obex/obeximpl.cc
@@ -81,64 +81,65 @@ void ObexImpl::slotMessage( const QCString& msg, const QByteArray&data ) {
}
}
void ObexImpl::slotCancelSend() {
// cancel sync process too
//m_obex->cancel(); // not ready yet
m_sendgui->hide();
}
void ObexImpl::slotDone(bool) {
QCopEnvelope e ("QPE/Obex", "done(QString)" ); //but this into a slot
e << m_name;
}
void ObexImpl::slotSent() {
m_sendgui->lblPath->setText("Done!");
m_sendgui->hide();
}
void ObexImpl::slotError( int errorCode) {
QString errorString = "";
if (errorCode == -1) {
errorString = "test";
}
qDebug("Error: " + errorString);
m_sendgui->hide();
}
// Received a file via beam
// check for mime type and then either
// add to App via setDocument
void ObexImpl::slotReceivedFile( const QString &fileName ) {
qWarning("filename %s", fileName.latin1() );
DocLnk lnk( fileName );
QString exec = lnk.exec();
qWarning("executing %s", exec.latin1() );
if ( exec.isEmpty() || exec == "" ) {
qWarning("empty");
if ( fileName.right(4) == ".vcf" )
exec = "addressbook";
else if ( fileName.right(4) == ".vcs" ) {
exec = "datebook";
}
} // now prompt and then add it
m_recvgui->PixmapLabel->setPixmap(lnk.pixmap());
- m_recvgui->TextLabel1_2->setText(lnk.name());
+ m_recvgui->AppLabel->setText(lnk.name());
+ m_recvgui->FileLabel->setText(fileName);
m_recvgui->showMaximized();
QCString str= "QPE/Application/";
str += exec.latin1();
qWarning("channel %s", str.data() );
QCopEnvelope e(str , "setDocument(QString)" );
e << fileName;
}
Q_EXPORT_INTERFACE()
{
Q_CREATE_INSTANCE( ObexImpl )
}
diff --git a/core/applets/obex/obexinc.ui b/core/applets/obex/obexinc.ui
index 05eb6ee..13d2767 100644
--- a/core/applets/obex/obexinc.ui
+++ b/core/applets/obex/obexinc.ui
@@ -1,292 +1,230 @@
<!DOCTYPE UI><UI>
<class>ObexInc</class>
<widget>
<class>QWidget</class>
<property stdset="1">
<name>name</name>
<cstring>ObexInc</cstring>
</property>
<property stdset="1">
<name>geometry</name>
<rect>
<x>0</x>
<y>0</y>
- <width>208</width>
+ <width>204</width>
<height>254</height>
</rect>
</property>
<property stdset="1">
<name>caption</name>
<string>OBEX Receiving</string>
</property>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer19</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Fixed</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
<widget>
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
- <cstring>Layout7</cstring>
+ <cstring>Layout4</cstring>
</property>
<property stdset="1">
<name>geometry</name>
<rect>
- <x>-14</x>
- <y>-2</y>
- <width>248</width>
- <height>240</height>
+ <x>1</x>
+ <y>206</y>
+ <width>246</width>
+ <height>33</height>
</rect>
</property>
- <grid>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget row="3" column="0" rowspan="1" colspan="3" >
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout4</cstring>
- </property>
<hbox>
<property stdset="1">
<name>margin</name>
<number>0</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<spacer>
<property>
<name>name</name>
<cstring>Spacer9</cstring>
</property>
<property stdset="1">
<name>orientation</name>
<enum>Horizontal</enum>
</property>
<property stdset="1">
<name>sizeType</name>
<enum>Expanding</enum>
</property>
<property>
<name>sizeHint</name>
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
<widget>
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
<cstring>InsertButton</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>Insert</string>
</property>
</widget>
<spacer>
<property>
<name>name</name>
<cstring>Spacer11</cstring>
</property>
<property stdset="1">
<name>orientation</name>
<enum>Horizontal</enum>
</property>
<property stdset="1">
<name>sizeType</name>
<enum>Expanding</enum>
</property>
<property>
<name>sizeHint</name>
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
<widget>
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
<cstring>RecjectButton</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>Reject</string>
</property>
</widget>
<spacer>
<property>
<name>name</name>
<cstring>Spacer10</cstring>
</property>
<property stdset="1">
<name>orientation</name>
<enum>Horizontal</enum>
</property>
<property stdset="1">
<name>sizeType</name>
<enum>Expanding</enum>
</property>
<property>
<name>sizeHint</name>
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</hbox>
</widget>
- <spacer row="1" column="2" >
- <property>
- <name>name</name>
- <cstring>Spacer20</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Fixed</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>53</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget row="1" column="0" >
+ <widget>
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>PixmapLabel</cstring>
</property>
<property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>20</x>
+ <y>90</y>
+ <width>40</width>
+ <height>40</height>
+ </rect>
+ </property>
+ <property stdset="1">
<name>scaledContents</name>
<bool>true</bool>
</property>
</widget>
- <spacer row="2" column="1" >
- <property>
- <name>name</name>
- <cstring>Spacer7</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Fixed</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>58</height>
- </size>
- </property>
- </spacer>
- <widget row="1" column="1" >
+ <widget>
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout5</cstring>
</property>
+ <property stdset="1">
+ <name>geometry</name>
+ <rect>
+ <x>80</x>
+ <y>90</y>
+ <width>79</width>
+ <height>68</height>
+ </rect>
+ </property>
<vbox>
<property stdset="1">
<name>margin</name>
<number>0</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget>
<class>QLabel</class>
<property stdset="1">
<name>name</name>
- <cstring>TextLabel1_2</cstring>
+ <cstring>AppLabel</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>TextLabel1</string>
</property>
</widget>
<widget>
<class>QLabel</class>
<property stdset="1">
<name>name</name>
- <cstring>TextLabel1</cstring>
+ <cstring>FileLabel</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>Filename</string>
</property>
<property stdset="1">
<name>alignment</name>
<set>AlignTop|AlignLeft</set>
</property>
<property>
<name>vAlign</name>
</property>
</widget>
</vbox>
</widget>
- <spacer row="0" column="1" >
- <property>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
<name>name</name>
- <cstring>Spacer8</cstring>
+ <cstring>TextLabel1</cstring>
</property>
<property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
+ <name>geometry</name>
+ <rect>
+ <x>20</x>
+ <y>20</y>
+ <width>161</width>
+ <height>41</height>
+ </rect>
</property>
<property stdset="1">
- <name>sizeType</name>
- <enum>Fixed</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>59</height>
- </size>
+ <name>text</name>
+ <string>A file was beamed
+to you.</string>
</property>
- </spacer>
- </grid>
</widget>
</widget>
</UI>