Nepomuk
groupterm.h
Go to the documentation of this file.
00001 /* 00002 This file is part of the Nepomuk KDE project. 00003 Copyright (C) 2009 Sebastian Trueg <trueg@kde.org> 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Lesser General Public 00007 License as published by the Free Software Foundation; either 00008 version 2.1 of the License, or (at your option) version 3, or any 00009 later version accepted by the membership of KDE e.V. (or its 00010 successor approved by the membership of KDE e.V.), which shall 00011 act as a proxy defined in Section 6 of version 3 of the license. 00012 00013 This library is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 Lesser General Public License for more details. 00017 00018 You should have received a copy of the GNU Lesser General Public 00019 License along with this library. If not, see <http://www.gnu.org/licenses/>. 00020 */ 00021 00022 #ifndef _NEPOMUK_QUERY_GROUP_TERM_H_ 00023 #define _NEPOMUK_QUERY_GROUP_TERM_H_ 00024 00025 #include "term.h" 00026 00027 #include "nepomukquery_export.h" 00028 00029 namespace Nepomuk { 00030 namespace Query { 00041 class NEPOMUKQUERY_EXPORT GroupTerm : public Term 00042 { 00043 public: 00047 ~GroupTerm(); 00048 00054 QList<Term> subTerms() const; 00055 00061 void setSubTerms( const QList<Term>& terms ); 00062 00069 void addSubTerm( const Term& term ); 00070 00071 protected: 00073 GroupTerm( const Term& term ); 00074 GroupTerm( TermPrivate* ); 00075 GroupTerm( TermPrivate*, 00076 const Term& term1, 00077 const Term& term2, 00078 const Term& term3 = Term(), 00079 const Term& term4 = Term(), 00080 const Term& term5 = Term(), 00081 const Term& term6 = Term() ); 00083 }; 00084 } 00085 } 00086 00087 #endif
KDE 4.6 API Reference