• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

NepomukDaemons

sopranoindexwriter.h

Go to the documentation of this file.
00001 /*
00002    Copyright (C) 2007-2008 Sebastian Trueg <trueg@kde.org>
00003  
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU General Public License as
00006    published by the Free Software Foundation; either version 2 of
00007    the License, or (at your option) any later version.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU General Public License
00015    along with this library; see the file COPYING.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017    Boston, MA 02110-1301, USA.
00018  */
00019 
00020 #ifndef _SOPRANO_STRIGI_INDEXER_H_
00021 #define _SOPRANO_STRIGI_INDEXER_H_
00022 
00023 #include <strigi/indexwriter.h>
00024 #include <strigi/analysisresult.h>
00025 #include <strigi/analyzerconfiguration.h>
00026 
00027 namespace Soprano {
00028     class Model;
00029     namespace Index {
00030     class IndexFilterModel;
00031     }
00032 }
00033 
00034 
00035 namespace Strigi {
00036     namespace Soprano {
00037 
00038     class IndexWriter : public Strigi::IndexWriter
00039     {
00040     public:
00041         IndexWriter( ::Soprano::Model* );
00042         ~IndexWriter();
00043 
00044         void commit();
00045 
00051         void deleteEntries( const std::vector<std::string>& entries );
00052 
00056         void deleteAllEntries();
00057 
00058         void initWriterData( const Strigi::FieldRegister& );
00059         void releaseWriterData( const Strigi::FieldRegister& );
00060 
00061         void startAnalysis( const AnalysisResult* );
00062         void addText( const AnalysisResult*, const char* text, int32_t length );
00063         void addValue( const AnalysisResult*, const RegisteredField* field,
00064                const std::string& value );
00065         void addValue( const AnalysisResult*, const RegisteredField* field,
00066                const unsigned char* data, uint32_t size );
00067         void addValue( const AnalysisResult*, const RegisteredField* field,
00068                int32_t value );
00069         void addValue( const AnalysisResult*, const RegisteredField* field,
00070                uint32_t value );
00071         void addValue( const AnalysisResult*, const RegisteredField* field,
00072                double value );
00073         void addTriplet( const std::string& subject,
00074                  const std::string& predicate, const std::string& object );
00075         void addValue( const AnalysisResult*, const RegisteredField* field,
00076                const std::string& name, const std::string& value );
00077         void finishAnalysis( const AnalysisResult* );
00078 
00079     private:
00080         class Private;
00081         Private* d;
00082     };
00083     }
00084 }
00085 
00086 uint qHash( const std::string& s );
00087 
00088 #endif

NepomukDaemons

Skip menu "NepomukDaemons"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • KCMShell
  • KNotify
  • KStyles
  • Nepomuk Daemons
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal