67 class QContact; |
66 class QContact; |
68 class QContactDetail; |
67 class QContactDetail; |
69 class QContactOrganization; |
68 class QContactOrganization; |
70 class QVersitProperty; |
69 class QVersitProperty; |
71 class QVersitDocument; |
70 class QVersitDocument; |
|
71 class QVersitContactHandler; |
72 |
72 |
73 class Q_AUTOTEST_EXPORT QVersitContactImporterPrivate |
73 class Q_AUTOTEST_EXPORT QVersitContactImporterPrivate |
74 { |
74 { |
75 public: |
75 public: |
76 QVersitContactImporterPrivate(); |
76 QVersitContactImporterPrivate(const QString& profile = QString()); |
77 ~QVersitContactImporterPrivate(); |
77 ~QVersitContactImporterPrivate(); |
78 |
78 |
79 bool importContact(const QVersitDocument& versitDocument, int contactIndex, |
79 bool importContact(const QVersitDocument& versitDocument, int contactIndex, |
80 QContact* contact, QVersitContactImporter::Error* error); |
80 QContact* contact, QVersitContactImporter::Error* error); |
81 QList<QVersitProperty> unconvertedVersitProperties(); |
|
82 |
81 |
83 static QString synthesizedDisplayLabel(const QContact& contact); |
82 static QString synthesizedDisplayLabel(const QContact& contact); |
84 |
83 |
85 private: |
84 private: |
86 void importProperty(const QVersitDocument& document, const QVersitProperty& property, int contactIndex, QContact* contact); |
85 void importProperty(const QVersitDocument& document, const QVersitProperty& property, int contactIndex, QContact* contact); |
113 public: // Data |
112 public: // Data |
114 QList<QContact> mContacts; |
113 QList<QContact> mContacts; |
115 QMap<int, QVersitContactImporter::Error> mErrors; |
114 QMap<int, QVersitContactImporter::Error> mErrors; |
116 QVersitContactImporterPropertyHandler* mPropertyHandler; |
115 QVersitContactImporterPropertyHandler* mPropertyHandler; |
117 QVersitContactImporterPropertyHandlerV2* mPropertyHandler2; |
116 QVersitContactImporterPropertyHandlerV2* mPropertyHandler2; |
|
117 QList<QVersitContactHandler*> mPluginPropertyHandlers; |
118 int mPropertyHandlerVersion; |
118 int mPropertyHandlerVersion; |
119 QVersitDefaultResourceHandler* mDefaultResourceHandler; |
119 QVersitDefaultResourceHandler* mDefaultResourceHandler; |
120 QVersitResourceHandler* mResourceHandler; |
120 QVersitResourceHandler* mResourceHandler; |
121 |
121 |
122 QHash<QString,QPair<QString,QString> > mDetailMappings; |
122 QHash<QString,QPair<QString,QString> > mDetailMappings; |