general_backend: Move StubApplet and add backend PhotoViewer
parent
80c9e4d3ab
commit
f6e2295055
@ -0,0 +1,48 @@
|
|||||||
|
// Copyright 2019 yuzu emulator team
|
||||||
|
// Licensed under GPLv2 or any later version
|
||||||
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "core/hle/service/am/applets/applets.h"
|
||||||
|
|
||||||
|
namespace Service::AM::Applets {
|
||||||
|
|
||||||
|
enum class PhotoViewerAppletMode : u8 {
|
||||||
|
CurrentApp = 0,
|
||||||
|
AllApps = 1,
|
||||||
|
};
|
||||||
|
|
||||||
|
class PhotoViewer final : public Applet {
|
||||||
|
public:
|
||||||
|
PhotoViewer(const Core::Frontend::PhotoViewerApplet& frontend);
|
||||||
|
~PhotoViewer() override;
|
||||||
|
|
||||||
|
void Initialize() override;
|
||||||
|
bool TransactionComplete() const override;
|
||||||
|
ResultCode GetStatus() const override;
|
||||||
|
void ExecuteInteractive() override;
|
||||||
|
void Execute() override;
|
||||||
|
|
||||||
|
void ViewFinished();
|
||||||
|
|
||||||
|
private:
|
||||||
|
const Core::Frontend::PhotoViewerApplet& frontend;
|
||||||
|
bool complete;
|
||||||
|
PhotoViewerAppletMode mode;
|
||||||
|
};
|
||||||
|
|
||||||
|
class StubApplet final : public Applet {
|
||||||
|
public:
|
||||||
|
StubApplet();
|
||||||
|
~StubApplet() override;
|
||||||
|
|
||||||
|
void Initialize() override;
|
||||||
|
|
||||||
|
bool TransactionComplete() const override;
|
||||||
|
ResultCode GetStatus() const override;
|
||||||
|
void ExecuteInteractive() override;
|
||||||
|
void Execute() override;
|
||||||
|
};
|
||||||
|
|
||||||
|
} // namespace Service::AM::Applets
|
Loading…
Reference in New Issue