mirror of
https://github.com/MadeOfJelly/MushMachine.git
synced 2024-10-29 22:45:34 +01:00
rich presence interface draft
This commit is contained in:
parent
2ee17a63ea
commit
c1f87aceda
24
framework/engine/src/mm/services/rich_presence_provider.hpp
Normal file
24
framework/engine/src/mm/services/rich_presence_provider.hpp
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <mm/engine.hpp>
|
||||||
|
|
||||||
|
namespace MM::Services {
|
||||||
|
|
||||||
|
// provides information for a RichPresenceConsumer
|
||||||
|
class RichPresenceProviderInterface : public Service {
|
||||||
|
public:
|
||||||
|
struct RichPresenceInformation {
|
||||||
|
std::string app {"mm_app"};
|
||||||
|
std::string status {"sleeping..."};
|
||||||
|
std::string details {"~.~"};
|
||||||
|
};
|
||||||
|
|
||||||
|
// TODO: do i want this?
|
||||||
|
//virtual bool infoChanged(void) { return true; }
|
||||||
|
|
||||||
|
// ah yes copy
|
||||||
|
virtual RichPresenceInformation get(void) = 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
} // MM::Services
|
||||||
|
|
Loading…
Reference in New Issue
Block a user