| 1 | // Aseprite |
| 2 | // Copyright (C) 2018 Igara Studio S.A. |
| 3 | // Copyright (c) 2001-2018 David Capello |
| 4 | // |
| 5 | // This program is distributed under the terms of |
| 6 | // the End-User License Agreement for Aseprite. |
| 7 | |
| 8 | #ifndef APP_DOCS_OBSERVER_H_INCLUDED |
| 9 | #define APP_DOCS_OBSERVER_H_INCLUDED |
| 10 | #pragma once |
| 11 | |
| 12 | namespace app { |
| 13 | class Doc; |
| 14 | |
| 15 | class CreateDocArgs { |
| 16 | public: |
| 17 | CreateDocArgs() : m_doc(nullptr) { } |
| 18 | Doc* document() { return m_doc; } |
| 19 | void setDocument(Doc* doc) { m_doc = doc; } |
| 20 | private: |
| 21 | Doc* m_doc; |
| 22 | }; |
| 23 | |
| 24 | class DocsObserver { |
| 25 | public: |
| 26 | virtual ~DocsObserver() { } |
| 27 | virtual void onAddDocument(Doc* doc) { } |
| 28 | virtual void onRemoveDocument(Doc* doc) { } |
| 29 | }; |
| 30 | |
| 31 | } // namespace app |
| 32 | |
| 33 | #endif |
| 34 | |