• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

AbiCollabImport.h

Go to the documentation of this file.
00001 /* Copyright (C) 2008 AbiSource Corporation B.V.
00002  *
00003  * This program is free software; you can redistribute it and/or
00004  * modify it under the terms of the GNU General Public License
00005  * as published by the Free Software Foundation; either version 2
00006  * of the License, or (at your option) any later version.
00007  *
00008  * This program is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011  * GNU General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU General Public License
00014  * along with this program; if not, write to the Free Software
00015  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00016  * 02110-1301 USA.
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 /* __ABICOLLAB_IMPORT__ */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1