[gnote] Make Notebook reference NoteManagerBase
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Make Notebook reference NoteManagerBase
- Date: Sun, 22 Dec 2019 20:28:09 +0000 (UTC)
commit 13de0062dd27c525c9d4b2ec264ab6c1294811d7
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Dec 22 22:20:36 2019 +0200
Make Notebook reference NoteManagerBase
src/notebooks/notebook.cpp | 17 ++---------------
src/notebooks/notebook.hpp | 6 +++---
2 files changed, 5 insertions(+), 18 deletions(-)
---
diff --git a/src/notebooks/notebook.cpp b/src/notebooks/notebook.cpp
index 92a88f4a..91863ee1 100644
--- a/src/notebooks/notebook.cpp
+++ b/src/notebooks/notebook.cpp
@@ -53,14 +53,7 @@ namespace notebooks {
return note->contains_tag(tag);
}
- /// <summary>
- /// Construct a new Notebook with a given name
- /// </summary>
- /// <param name="name">
- /// A <see cref="System.String"/>. This is the name that will be used
- /// to identify the notebook.
- /// </param>
- Notebook::Notebook(NoteManager & manager, const Glib::ustring & name, bool is_special)
+ Notebook::Notebook(NoteManagerBase & manager, const Glib::ustring & name, bool is_special)
: m_note_manager(manager)
{
// is special assume the name as is, and we don't want a tag.
@@ -74,13 +67,7 @@ namespace notebooks {
}
}
- /// <summary>
- /// Construct a new Notebook with the specified notebook system tag.
- /// </summary>
- /// <param name="notebookTag">
- /// A <see cref="Tag"/>. This must be a system notebook tag.
- /// </param>
- Notebook::Notebook(NoteManager & manager, const Tag::Ptr & notebookTag)
+ Notebook::Notebook(NoteManagerBase & manager, const Tag::Ptr & notebookTag)
: m_note_manager(manager)
{
// Parse the notebook name from the tag name
diff --git a/src/notebooks/notebook.hpp b/src/notebooks/notebook.hpp
index 99bd26c7..f4e543e9 100644
--- a/src/notebooks/notebook.hpp
+++ b/src/notebooks/notebook.hpp
@@ -39,8 +39,8 @@ class Notebook
public:
typedef std::shared_ptr<Notebook> Ptr;
static const char * NOTEBOOK_TAG_PREFIX;
- Notebook(NoteManager &, const Glib::ustring &, bool is_special = false);
- Notebook(NoteManager &, const Tag::Ptr &);
+ Notebook(NoteManagerBase &, const Glib::ustring &, bool is_special = false);
+ Notebook(NoteManagerBase &, const Tag::Ptr &);
Glib::ustring get_name() const
{ return m_name; }
void set_name(const Glib::ustring &);
@@ -59,7 +59,7 @@ protected:
Tag::Ptr template_tag() const;
bool is_template_note(const Note::Ptr &);
- NoteManager & m_note_manager;
+ NoteManagerBase & m_note_manager;
private:
static Tag::Ptr s_template_tag;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]