Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Corryvreckan
Corryvreckan
Commits
241f957f
Commit
241f957f
authored
Sep 10, 2019
by
Simon Spannagel
Browse files
Clipboard: clear should be private, only ModManager is allowed to clear
parent
da6f9040
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/core/clipboard/Clipboard.hpp
View file @
241f957f
...
...
@@ -34,6 +34,7 @@ namespace corryvreckan {
* information which should outlast a single event. This is dubbed the "persistent storage"
*/
class
Clipboard
{
friend
class
ModuleManager
;
public:
/**
...
...
@@ -100,11 +101,6 @@ namespace corryvreckan {
*/
bool
has_persistent
(
std
::
string
name
)
const
;
/**
* @brief Clear the event storage of the clipboard
*/
void
clear
();
/**
* @brief Get a list of currently held collections on the clipboard event storage
* @return Vector of collections names currently stored on the clipboard
...
...
@@ -118,6 +114,11 @@ namespace corryvreckan {
const
ClipboardData
&
get_all
()
const
;
private:
/**
* @brief Clear the event storage of the clipboard
*/
void
clear
();
// Container for data, list of all data held
ClipboardData
m_data
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment