author | gints <gints> | 2005-05-13 17:30:15 (UTC) |
---|---|---|
committer | gints <gints> | 2005-05-13 17:30:15 (UTC) |
commit | 4451abf402aa1dd967ef8b70a7eba1192f13afb0 (patch) (unidiff) | |
tree | 985405c7a3fe121103114eaebf3f87603894672d | |
parent | b010c50f099d197c0a89755eeef4dc1e40559a83 (diff) | |
download | opie-4451abf402aa1dd967ef8b70a7eba1192f13afb0.zip opie-4451abf402aa1dd967ef8b70a7eba1192f13afb0.tar.gz opie-4451abf402aa1dd967ef8b70a7eba1192f13afb0.tar.bz2 |
Remove latinism in today owner information - bug 1655
-rw-r--r-- | core/pim/today/today.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp index 67b23e1..450ecb7 100644 --- a/core/pim/today/today.cpp +++ b/core/pim/today/today.cpp | |||
@@ -34,2 +34,5 @@ | |||
34 | #include <opie2/opluginloader.h> | 34 | #include <opie2/opluginloader.h> |
35 | #include <opie2/opimcontact.h> | ||
36 | #include <opie2/ocontactaccessbackend_vcard.h> | ||
37 | #include <opie2/ocontactaccess.h> | ||
35 | #include <opie2/oconfig.h> | 38 | #include <opie2/oconfig.h> |
@@ -39,3 +42,2 @@ | |||
39 | #include <qpe/qpeapplication.h> | 42 | #include <qpe/qpeapplication.h> |
40 | #include <qpe/contact.h> | ||
41 | 43 | ||
@@ -134,5 +136,7 @@ void Today::setRefreshTimer( int interval ) { | |||
134 | void Today::setOwnerField() { | 136 | void Today::setOwnerField() { |
135 | QString file = Global::applicationFileName( "addressbook", "businesscard.vcf" ); | 137 | QString vfilename = Global::applicationFileName("addressbook", "businesscard.vcf"); |
136 | if ( QFile::exists( file ) ) { | 138 | Opie::OPimContactAccess acc( "today", vfilename, |
137 | Contact cont = Contact::readVCard( file )[0]; | 139 | new Opie::OPimContactAccessBackend_VCard("today", vfilename ) ); |
140 | if ( acc.load() ) { | ||
141 | Opie::OPimContact cont = acc.allRecords()[0]; | ||
138 | QString returnString = cont.fullName(); | 142 | QString returnString = cont.fullName(); |