summaryrefslogtreecommitdiff
path: root/SubscriptionManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'SubscriptionManager.h')
-rw-r--r--SubscriptionManager.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/SubscriptionManager.h b/SubscriptionManager.h
index fb86e75..9efaa5b 100644
--- a/SubscriptionManager.h
+++ b/SubscriptionManager.h
@@ -94,6 +94,12 @@ namespace plexclient {
std::string GetTimelineXml();
};
+ enum class ActionType { Play, Display };
+ struct Action {
+ cVideo video;
+ ActionType type;
+ };
+
class ActionManager {
public:
static ActionManager &GetInstance() {
@@ -101,9 +107,9 @@ namespace plexclient {
return instance;
}
- void AddAction(cVideo video);
+ void AddAction(Action action);
- cVideo GetAction();
+ Action GetAction();
bool IsAction();
@@ -113,7 +119,7 @@ namespace plexclient {
ActionManager();
- cVideo m_Action;
+ Action m_Action;
bool m_isAction;
};