summaryrefslogtreecommitdiff
path: root/core/obex/receiver.cpp
Unidiff
Diffstat (limited to 'core/obex/receiver.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/obex/receiver.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/obex/receiver.cpp b/core/obex/receiver.cpp
index 50ee6cb..d5a7271 100644
--- a/core/obex/receiver.cpp
+++ b/core/obex/receiver.cpp
@@ -57,20 +57,23 @@ void Receiver::handleDateTodo( const QString& str ) {
57 */ 57 */
58void Receiver::handleOther( const QString& other ) { 58void Receiver::handleOther( const QString& other ) {
59 OtherHandler* hand = new OtherHandler(); 59 OtherHandler* hand = new OtherHandler();
60 hand->handle( other ); 60 hand->handle( other );
61} 61}
62int Receiver::checkFile( const QString& file ) { 62int Receiver::checkFile( const QString& file ) {
63 qWarning("check file!! %s", file.latin1() );
63 int ret; 64 int ret;
64 if (file.right(4) == ".vcs" ) { 65 if (file.right(4) == ".vcs" ) {
65 ret = Datebook; 66 ret = Datebook;
66 }else if ( file.right(4) == ".vcf") { 67 }else if ( file.right(4) == ".vcf") {
67 ret = AddressBook; 68 ret = AddressBook;
68 }else 69 }else
69 ret = Other; 70 ret = Other;
70 71
72
73 qWarning("check it now %d", ret );
71 return ret; 74 return ret;
72} 75}
73 76
74OtherHandler::OtherHandler() 77OtherHandler::OtherHandler()
75 : QVBox() 78 : QVBox()
76{ 79{
@@ -103,12 +106,13 @@ OtherHandler::~OtherHandler() {
103 106
104} 107}
105void OtherHandler::handle( const QString& file ) { 108void OtherHandler::handle( const QString& file ) {
106 m_file = file; 109 m_file = file;
107 m_na->setText(file); 110 m_na->setText(file);
108 DocLnk lnk(file); 111 DocLnk lnk(file);
112 qWarning(" %s %s", lnk.type().latin1(), lnk.icon().latin1() );
109 113
110 QString str = tr("<p>You received a file of type %1 (<img src=\"%2\"> )What do you want to do?").arg(lnk.type() ).arg(lnk.icon() ); 114 QString str = tr("<p>You received a file of type %1 (<img src=\"%2\"> )What do you want to do?").arg(lnk.type() ).arg(lnk.icon() );
111 m_view->setText( str ); 115 m_view->setText( str );
112} 116}
113 117
114/* 118/*