File indexing completed on 2025-02-16 04:59:36
0001 /* 0002 * SPDX-FileCopyrightText: 2014 Kevin Ottens <ervin@kde.org> 0003 SPDX-FileCopyrightText: 2014 RĂ©mi Benoit <r3m1.benoit@gmail.com> 0004 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 0008 #ifndef DOMAIN_CONTEXTQUERIES_H 0009 #define DOMAIN_CONTEXTQUERIES_H 0010 0011 #include "context.h" 0012 #include "queryresult.h" 0013 #include "task.h" 0014 0015 namespace Domain { 0016 0017 class ContextQueries 0018 { 0019 public: 0020 typedef QSharedPointer<ContextQueries> Ptr; 0021 0022 ContextQueries(); 0023 virtual ~ContextQueries(); 0024 0025 virtual QueryResult<Context::Ptr>::Ptr findAll() const = 0; 0026 0027 virtual QueryResult<Task::Ptr>::Ptr findTopLevelTasks(Context::Ptr context) const = 0; 0028 }; 0029 0030 } 0031 0032 #endif // DOMAIN_CONTEXTQUERIES_H