1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:37:34 +00:00

Network stack is now configurable, and resolution is also configurable, but loading cursors causes a page-fault?

This commit is contained in:
Christopher Dumas 2019-05-24 21:10:23 -07:00 committed by Andreas Kling
parent 9d2b08e06e
commit d4a16d6031
7 changed files with 160 additions and 34 deletions

View file

@ -1,5 +1,6 @@
#pragma once
#include <SharedGraphics/Color.h>
#include <AK/Vector.h>
#include <AK/HashMap.h>
#include <AK/AKString.h>
@ -9,6 +10,7 @@
class CConfigFile : public Retainable<CConfigFile> {
public:
static Retained<CConfigFile> get_for_app(const String& app_name);
static Retained<CConfigFile> get_for_system(const String& app_name);
~CConfigFile();
bool has_group(const String&) const;
@ -20,10 +22,12 @@ public:
String read_entry(const String& group, const String& key, const String& default_vaule = String()) const;
int read_num_entry(const String& group, const String& key, int default_value = 0) const;
bool read_bool_entry(const String& group, const String& key, bool default_value = false) const;
Color read_color_entry(const String& group, const String &key, Color default_value) const;
void write_entry(const String& group, const String& key, const String &value);
void write_num_entry(const String& group, const String& key, int value);
void write_bool_entry(const String& group, const String& key, bool value);
void write_color_entry(const String& group, const String& key, Color value);
void dump() const;
@ -34,6 +38,8 @@ public:
void remove_group(const String& group);
void remove_entry(const String& group, const String& key);
String file_name() const { return m_file_name; }
private:
explicit CConfigFile(const String& file_name);