-rw-r--r-- | libopie/pim/ocontact.cpp | 4 | ||||
-rw-r--r-- | libopie2/opiepim/ocontact.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/libopie/pim/ocontact.cpp b/libopie/pim/ocontact.cpp index 828a9de..a63753e 100644 --- a/libopie/pim/ocontact.cpp +++ b/libopie/pim/ocontact.cpp | |||
@@ -1,89 +1,89 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. | 2 | ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of the Qtopia Environment. | 4 | ** This file is part of the Qtopia Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | 20 | ||
21 | #define QTOPIA_INTERNAL_CONTACT_MRE | 21 | #define QTOPIA_INTERNAL_CONTACT_MRE |
22 | 22 | ||
23 | #include "ocontact.h" | 23 | #include "ocontact.h" |
24 | #include "vobject_p.h" | 24 | #include "../../library/backend/vobject_p.h" |
25 | #include "qfiledirect_p.h" | 25 | #include "../../library/backend/qfiledirect_p.h" |
26 | 26 | ||
27 | #include <qpe/stringutil.h> | 27 | #include <qpe/stringutil.h> |
28 | #include <qpe/timeconversion.h> | 28 | #include <qpe/timeconversion.h> |
29 | 29 | ||
30 | #include <qobject.h> | 30 | #include <qobject.h> |
31 | #include <qregexp.h> | 31 | #include <qregexp.h> |
32 | #include <qstylesheet.h> | 32 | #include <qstylesheet.h> |
33 | #include <qfileinfo.h> | 33 | #include <qfileinfo.h> |
34 | #include <qmap.h> | 34 | #include <qmap.h> |
35 | 35 | ||
36 | #include <stdio.h> | 36 | #include <stdio.h> |
37 | 37 | ||
38 | /*! | 38 | /*! |
39 | \class Contact contact.h | 39 | \class Contact contact.h |
40 | \brief The Contact class holds the data of an address book entry. | 40 | \brief The Contact class holds the data of an address book entry. |
41 | 41 | ||
42 | This data includes information the name of the person, contact | 42 | This data includes information the name of the person, contact |
43 | information, and business information such as deparment and job title. | 43 | information, and business information such as deparment and job title. |
44 | 44 | ||
45 | \ingroup qtopiaemb | 45 | \ingroup qtopiaemb |
46 | \ingroup qtopiadesktop | 46 | \ingroup qtopiadesktop |
47 | */ | 47 | */ |
48 | 48 | ||
49 | Qtopia::UidGen OContact::sUidGen( Qtopia::UidGen::Qtopia ); | 49 | Qtopia::UidGen OContact::sUidGen( Qtopia::UidGen::Qtopia ); |
50 | 50 | ||
51 | /*! | 51 | /*! |
52 | Creates a new, empty contact. | 52 | Creates a new, empty contact. |
53 | */ | 53 | */ |
54 | OContact::OContact() | 54 | OContact::OContact() |
55 | : OPimRecord(), mMap(), d( 0 ) | 55 | : OPimRecord(), mMap(), d( 0 ) |
56 | { | 56 | { |
57 | } | 57 | } |
58 | 58 | ||
59 | /*! | 59 | /*! |
60 | \internal | 60 | \internal |
61 | Creates a new contact. The properties of the contact are | 61 | Creates a new contact. The properties of the contact are |
62 | set from \a fromMap. | 62 | set from \a fromMap. |
63 | */ | 63 | */ |
64 | OContact::OContact( const QMap<int, QString> &fromMap ) : | 64 | OContact::OContact( const QMap<int, QString> &fromMap ) : |
65 | OPimRecord(), mMap( fromMap ), d( 0 ) | 65 | OPimRecord(), mMap( fromMap ), d( 0 ) |
66 | { | 66 | { |
67 | QString cats = mMap[ Qtopia::AddressCategory ]; | 67 | QString cats = mMap[ Qtopia::AddressCategory ]; |
68 | if ( !cats.isEmpty() ) | 68 | if ( !cats.isEmpty() ) |
69 | setCategories( idsFromString( cats ) ); | 69 | setCategories( idsFromString( cats ) ); |
70 | QString uidStr = find( Qtopia::AddressUid ); | 70 | QString uidStr = find( Qtopia::AddressUid ); |
71 | 71 | ||
72 | if ( uidStr.isEmpty() ) | 72 | if ( uidStr.isEmpty() ) |
73 | setUid( uidGen().generate() ); | 73 | setUid( uidGen().generate() ); |
74 | else | 74 | else |
75 | setUid( uidStr.toInt() ); | 75 | setUid( uidStr.toInt() ); |
76 | 76 | ||
77 | if ( !uidStr.isEmpty() ) | 77 | if ( !uidStr.isEmpty() ) |
78 | setUid( uidStr.toInt() ); | 78 | setUid( uidStr.toInt() ); |
79 | } | 79 | } |
80 | 80 | ||
81 | /*! | 81 | /*! |
82 | Destroys a contact. | 82 | Destroys a contact. |
83 | */ | 83 | */ |
84 | OContact::~OContact() | 84 | OContact::~OContact() |
85 | { | 85 | { |
86 | } | 86 | } |
87 | 87 | ||
88 | /*! \fn void OContact::setTitle( const QString &str ) | 88 | /*! \fn void OContact::setTitle( const QString &str ) |
89 | Sets the title of the contact to \a str. | 89 | Sets the title of the contact to \a str. |
diff --git a/libopie2/opiepim/ocontact.cpp b/libopie2/opiepim/ocontact.cpp index 828a9de..a63753e 100644 --- a/libopie2/opiepim/ocontact.cpp +++ b/libopie2/opiepim/ocontact.cpp | |||
@@ -1,89 +1,89 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. | 2 | ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of the Qtopia Environment. | 4 | ** This file is part of the Qtopia Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | 20 | ||
21 | #define QTOPIA_INTERNAL_CONTACT_MRE | 21 | #define QTOPIA_INTERNAL_CONTACT_MRE |
22 | 22 | ||
23 | #include "ocontact.h" | 23 | #include "ocontact.h" |
24 | #include "vobject_p.h" | 24 | #include "../../library/backend/vobject_p.h" |
25 | #include "qfiledirect_p.h" | 25 | #include "../../library/backend/qfiledirect_p.h" |
26 | 26 | ||
27 | #include <qpe/stringutil.h> | 27 | #include <qpe/stringutil.h> |
28 | #include <qpe/timeconversion.h> | 28 | #include <qpe/timeconversion.h> |
29 | 29 | ||
30 | #include <qobject.h> | 30 | #include <qobject.h> |
31 | #include <qregexp.h> | 31 | #include <qregexp.h> |
32 | #include <qstylesheet.h> | 32 | #include <qstylesheet.h> |
33 | #include <qfileinfo.h> | 33 | #include <qfileinfo.h> |
34 | #include <qmap.h> | 34 | #include <qmap.h> |
35 | 35 | ||
36 | #include <stdio.h> | 36 | #include <stdio.h> |
37 | 37 | ||
38 | /*! | 38 | /*! |
39 | \class Contact contact.h | 39 | \class Contact contact.h |
40 | \brief The Contact class holds the data of an address book entry. | 40 | \brief The Contact class holds the data of an address book entry. |
41 | 41 | ||
42 | This data includes information the name of the person, contact | 42 | This data includes information the name of the person, contact |
43 | information, and business information such as deparment and job title. | 43 | information, and business information such as deparment and job title. |
44 | 44 | ||
45 | \ingroup qtopiaemb | 45 | \ingroup qtopiaemb |
46 | \ingroup qtopiadesktop | 46 | \ingroup qtopiadesktop |
47 | */ | 47 | */ |
48 | 48 | ||
49 | Qtopia::UidGen OContact::sUidGen( Qtopia::UidGen::Qtopia ); | 49 | Qtopia::UidGen OContact::sUidGen( Qtopia::UidGen::Qtopia ); |
50 | 50 | ||
51 | /*! | 51 | /*! |
52 | Creates a new, empty contact. | 52 | Creates a new, empty contact. |
53 | */ | 53 | */ |
54 | OContact::OContact() | 54 | OContact::OContact() |
55 | : OPimRecord(), mMap(), d( 0 ) | 55 | : OPimRecord(), mMap(), d( 0 ) |
56 | { | 56 | { |
57 | } | 57 | } |
58 | 58 | ||
59 | /*! | 59 | /*! |
60 | \internal | 60 | \internal |
61 | Creates a new contact. The properties of the contact are | 61 | Creates a new contact. The properties of the contact are |
62 | set from \a fromMap. | 62 | set from \a fromMap. |
63 | */ | 63 | */ |
64 | OContact::OContact( const QMap<int, QString> &fromMap ) : | 64 | OContact::OContact( const QMap<int, QString> &fromMap ) : |
65 | OPimRecord(), mMap( fromMap ), d( 0 ) | 65 | OPimRecord(), mMap( fromMap ), d( 0 ) |
66 | { | 66 | { |
67 | QString cats = mMap[ Qtopia::AddressCategory ]; | 67 | QString cats = mMap[ Qtopia::AddressCategory ]; |
68 | if ( !cats.isEmpty() ) | 68 | if ( !cats.isEmpty() ) |
69 | setCategories( idsFromString( cats ) ); | 69 | setCategories( idsFromString( cats ) ); |
70 | QString uidStr = find( Qtopia::AddressUid ); | 70 | QString uidStr = find( Qtopia::AddressUid ); |
71 | 71 | ||
72 | if ( uidStr.isEmpty() ) | 72 | if ( uidStr.isEmpty() ) |
73 | setUid( uidGen().generate() ); | 73 | setUid( uidGen().generate() ); |
74 | else | 74 | else |
75 | setUid( uidStr.toInt() ); | 75 | setUid( uidStr.toInt() ); |
76 | 76 | ||
77 | if ( !uidStr.isEmpty() ) | 77 | if ( !uidStr.isEmpty() ) |
78 | setUid( uidStr.toInt() ); | 78 | setUid( uidStr.toInt() ); |
79 | } | 79 | } |
80 | 80 | ||
81 | /*! | 81 | /*! |
82 | Destroys a contact. | 82 | Destroys a contact. |
83 | */ | 83 | */ |
84 | OContact::~OContact() | 84 | OContact::~OContact() |
85 | { | 85 | { |
86 | } | 86 | } |
87 | 87 | ||
88 | /*! \fn void OContact::setTitle( const QString &str ) | 88 | /*! \fn void OContact::setTitle( const QString &str ) |
89 | Sets the title of the contact to \a str. | 89 | Sets the title of the contact to \a str. |