Enigma  3.2.0
A Simple, Reliable and Efficient Encryption Tool
ViewEncryptionScene.hpp
Go to the documentation of this file.
1 #pragma once
2 #include "Scene.hpp"
3 
4 #include <Database/Database.hpp>
5 
7 
8 class ViewEncryptionScene : public Enigma::Scene {
9  public: /* Constructors / Destructor */
10  explicit ViewEncryptionScene(const std::int64_t encryption_id);
11  virtual ~ViewEncryptionScene() noexcept = default;
12 
13  private: /* Overrides */
14  void OnCreate() override;
15  [[maybe_unused]] void OnUpdate(const float&) override;
16  void OnDraw() override;
17  void OnImGuiDraw() override;
18  [[maybe_unused]] void OnEvent(Enigma::Event&) override;
19  void OnDestroy() override;
20 
21  private: /* Callbacks */
22  void OnBackButtonPressed();
23  void OnDecryptButtonPressed();
24  void OnCopyRecoveredTextButtonPressed();
25 
26  private:
27  std::unique_ptr<Encryption> m_encryption{};
28 
29  std::string m_password{}; // password used for encryption text or file
30  std::string m_recovered_text{}; // to be assigned Decrypted/Recovered Text after decryption success
31 
32 
33  // RSA special stuff
34  std::string m_rsa_private_key{};
35  std::size_t m_rsa_keySize{}; // to be detected
36 };
37 
#define NS_ENIGMA_BEGIN
Enable/Disable Assertions.
Definition: Macros.hpp:13
#define NS_ENIGMA_END
Definition: Macros.hpp:14
Definition: Event.hpp:66
ViewEncryptionScene(const std::int64_t encryption_id)
virtual ~ViewEncryptionScene() noexcept=default