RStudio Launcher Plugin SDK  1.1.3
A software development kit for creating plugins that work the the RStudio Launcher.
QuickStartJobRepository.hpp
1 /*
2  * QuickStartJobRepository.hpp
3  *
4  * Copyright (C) 2020 by RStudio, PBC
5  *
6  * Unless you have received this program directly from RStudio pursuant to the terms of a commercial license agreement
7  * with RStudio, then this program is licensed to you under the following terms:
8  *
9  * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
10  * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
11  * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
12  * permit persons to whom the Software is furnished to do so, subject to the following conditions:
13  *
14  * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
15  * Software.
16  *
17  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
18  * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
19  * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
20  * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21  *
22  */
23 
24 #ifndef LAUNCHER_PLUGINS_QUICK_START_JOB_REPOSITORY_HPP
25 #define LAUNCHER_PLUGINS_QUICK_START_JOB_REPOSITORY_HPP
26 
27 #include <jobs/AbstractJobRepository.hpp>
28 
29 namespace rstudio {
30 namespace launcher_plugins {
31 namespace quickstart {
32 
34 {
35 public:
41  explicit QuickStartJobRepository(jobs::JobStatusNotifierPtr in_notifier);
42 
43 private:
53  virtual Error loadJobs(api::JobList& out_jobs) const override;
54 };
55 
56 } // namespace quickstart
57 } // namespace launcher_plugins
58 } // namespace rstudio
59 
60 #endif
rstudio::launcher_plugins::quickstart::QuickStartJobRepository::QuickStartJobRepository
QuickStartJobRepository(jobs::JobStatusNotifierPtr in_notifier)
Constructor.
rstudio::launcher_plugins::jobs::AbstractJobRepository
Stores any jobs currently in the job scheduling system.
Definition: AbstractJobRepository.hpp:50
rstudio::launcher_plugins::Error
Class which represents an error.
Definition: Error.hpp:174
rstudio::launcher_plugins::quickstart::QuickStartJobRepository
Definition: QuickStartJobRepository.hpp:33