summaryrefslogtreecommitdiffhomepage
path: root/src/modules/Power/PowerFactory.h
blob: 1254a4759ebbc775099e6f4db691024728963a94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright 2024-2025, Amlal El Mahrouss (amlal@nekernel.org)
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
// Official repository: https://github.com/ne-foss-org/nekernel

#ifndef POWER_POWERFACTORY_H
#define POWER_POWERFACTORY_H

#include <KernelKit/DebugOutput.h>
#include <NeKit/Config.h>
#include <NeKit/ErrorOr.h>
#include <NeKit/Ref.h>
#include <modules/ACPI/ACPI.h>

#define NE_POWER_FACTORY : public PowerFactory

namespace Kernel {
class PowerFactory {
 public:
  explicit PowerFactory() = default;
  virtual ~PowerFactory() = default;

  PowerFactory& operator=(const PowerFactory&) = default;
  PowerFactory(const PowerFactory&)            = default;

 public:
  virtual Bool Shutdown() { return NO; }  // shutdown
  virtual Void Reboot() {}                // soft-reboot
};
}  // namespace Kernel

#endif