Molybden API
Loading...
Searching...
No Matches
clipboard.hpp
1// Copyright (c) 2000-2024 TeamDev. All rights reserved.
2// TeamDev PROPRIETARY and CONFIDENTIAL.
3// Use is subject to license terms.
4
5#ifndef MOLYBDEN_CLIPBOARD_HPP
6#define MOLYBDEN_CLIPBOARD_HPP
7
8#include <memory>
9#include <vector>
10
11namespace molybden {
12
13class App;
14class ClipboardData;
15
19class Clipboard {
20 public:
24 virtual std::shared_ptr<App> app() = 0;
25
29 virtual std::vector<std::shared_ptr<ClipboardData>> read() = 0;
30
34 virtual void write(std::shared_ptr<ClipboardData> data) = 0;
35
39 virtual void write(std::vector<std::shared_ptr<ClipboardData>> data) = 0;
40
44 virtual void clear() = 0;
45
46 virtual ~Clipboard() = default;
47};
48
49} // namespace molybden
50
51#endif // MOLYBDEN_CLIPBOARD_HPP
Allows to access the system clipboard.
Definition clipboard.hpp:19
virtual void write(std::vector< std::shared_ptr< ClipboardData > > data)=0
Writes the given list of data to the system clipboard.
virtual void clear()=0
Clears the system clipboard.
virtual std::vector< std::shared_ptr< ClipboardData > > read()=0
Reads the system clipboard data.
virtual void write(std::shared_ptr< ClipboardData > data)=0
Writes the given data to the system clipboard.
virtual std::shared_ptr< App > app()=0
Returns the current application.