mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Add additional methods for DeviceInfo.
This commit is contained in:
@@ -32,16 +32,20 @@ public:
|
||||
|
||||
std::optional<std::filesystem::path> GetDownloadPath() const override;
|
||||
std::optional<std::filesystem::path> GetLocalAppDataPath() const override;
|
||||
std::optional<std::filesystem::path> GetCommonAppDataPath() const override;
|
||||
std::optional<std::filesystem::path> GetCommonAppDataPath() const override {
|
||||
return std::nullopt;
|
||||
};
|
||||
std::optional<std::filesystem::path> GetTemporaryPath() const override;
|
||||
std::optional<std::filesystem::path> GetLogPath() const override;
|
||||
std::optional<std::filesystem::path> GetCrashDumpPath() const override;
|
||||
|
||||
bool IsScreenLocked() const override;
|
||||
// TODO: Implement listening to logind for changes to LockedState.
|
||||
void RegisterScreenLockedListener(
|
||||
absl::string_view listener_name,
|
||||
std::function<void(api::DeviceInfo::ScreenStatus)> callback) override;
|
||||
void UnregisterScreenLockedListener(absl::string_view listener_name) override;
|
||||
std::function<void(api::DeviceInfo::ScreenStatus)> callback) override{};
|
||||
void
|
||||
UnregisterScreenLockedListener(absl::string_view listener_name) override{};
|
||||
|
||||
sd_bus *system_bus;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user