Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __ABICOLLAB_IMPORT__
00020 #define __ABICOLLAB_IMPORT__
00021
00022 #include "ie_imp.h"
00023 #include "ut_types.h"
00024
00025 class ServiceAccountHandler;
00026
00027 class IE_Imp_AbiCollabSniffer : public IE_ImpSniffer
00028 {
00029 public:
00030 IE_Imp_AbiCollabSniffer();
00031 virtual ~IE_Imp_AbiCollabSniffer() {}
00032
00033 virtual const IE_SuffixConfidence * getSuffixConfidence ();
00034 virtual UT_Confidence_t recognizeContents(const char * szBuf, UT_uint32 iNumbytes);
00035 virtual const IE_MimeConfidence * getMimeConfidence () { return NULL; }
00036 virtual bool getDlgLabels (const char ** pszDesc, const char ** pszSuffixList, IEFileType * ft);
00037 virtual UT_Error constructImporter (PD_Document * pDocument, IE_Imp ** ppie);
00038 };
00039
00040 class IE_Imp_AbiCollab : public IE_Imp
00041 {
00042 public:
00043 IE_Imp_AbiCollab(PD_Document* pDocument);
00044
00045 protected:
00046 virtual UT_Error _loadFile(GsfInput * input);
00047
00048 private:
00049 UT_Error _openDocument(GsfInput * input, ServiceAccountHandler* pAccount,
00050 const std::string& email, const std::string& server, UT_sint64 doc_id, UT_sint64 revision);
00051 bool _parse(GsfInput * input, std::string& email, std::string& server, UT_sint64& doc_id, UT_sint64& revision);
00052 ServiceAccountHandler* _getAccount(const std::string& email, const std::string& server);
00053 };
00054
00055 #endif