1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 02:17:35 +00:00

LibCore: Move GIODevice hierarchy from LibGUI to LibCore.

This commit is contained in:
Andreas Kling 2019-04-10 20:22:23 +02:00
parent fc1d3074de
commit cfd6e6cc36
19 changed files with 112 additions and 112 deletions

21
LibCore/CFile.h Normal file
View file

@ -0,0 +1,21 @@
#pragma once
#include <LibCore/CIODevice.h>
#include <AK/AKString.h>
class CFile final : public CIODevice {
public:
CFile() { }
explicit CFile(const String&);
virtual ~CFile() override;
String filename() const { return m_filename; }
void set_filename(const String& filename) { m_filename = filename; }
virtual bool open(CIODevice::OpenMode) override;
virtual const char* class_name() const override { return "CFile"; }
private:
String m_filename;
};