32 lines
541 B
C++
32 lines
541 B
C++
#pragma once
|
|
|
|
namespace chatterino {
|
|
|
|
class Settings;
|
|
class Paths;
|
|
|
|
class Singleton
|
|
{
|
|
public:
|
|
Singleton() = default;
|
|
virtual ~Singleton() = default;
|
|
|
|
Singleton(const Singleton &) = delete;
|
|
Singleton &operator=(const Singleton &) = delete;
|
|
|
|
Singleton(Singleton &&) = delete;
|
|
Singleton &operator=(Singleton &&) = delete;
|
|
|
|
virtual void initialize(Settings &settings, const Paths &paths)
|
|
{
|
|
(void)(settings);
|
|
(void)(paths);
|
|
}
|
|
|
|
virtual void save()
|
|
{
|
|
}
|
|
};
|
|
|
|
} // namespace chatterino
|