]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/base.h
Remove signal_closed now that closing is only done in the destructor
[libs/core.git] / source / io / base.h
index 8e4d4a547243ec86a867c6fce4c2ba8122c8f11b..61819cfe8144c782dae9e8749d971c3f336aa641 100644 (file)
@@ -24,9 +24,6 @@ public:
        seeked) and any data buffered by upper layers needs to be flushed. */
        sigc::signal<void> signal_flush_required;
 
-       /** Emitted when the I/O object has closed. */
-       sigc::signal<void> signal_closed;
-
        /** Emitted when the object is deleted.  Mainly for use by
        EventDispatcher. */
        sigc::signal<void> signal_deleted;
@@ -54,6 +51,8 @@ public:
        Mode get_mode() const { return mode; }
 
 protected:
+       void check_access(Mode) const;
+
        virtual unsigned do_write(const char *, unsigned) = 0;
        virtual unsigned do_read(char *, unsigned) = 0;
 
@@ -83,6 +82,10 @@ public:
        to end-of-file or non-blocking operation. */
        virtual int get();
 
+protected:
+       void set_eof();
+
+public:
        /** Returns the end-of-file flag. */
        bool eof() const { return eof_flag; }
 };