Glib::ustring RemoteControl::CreateNote() { try { NoteBase::Ptr note = m_manager.create (); return note->uri(); } catch(...) { } return ""; }
Glib::ustring RemoteControl::CreateNamedNote(const Glib::ustring& linked_title) { NoteBase::Ptr note = m_manager.find(linked_title); if (note) return ""; try { note = m_manager.create (linked_title); return note->uri(); } catch (const std::exception & e) { ERR_OUT(_("Exception thrown when creating note: %s"), e.what()); } return ""; }
Glib::ustring RemoteControl::FindStartHereNote() { NoteBase::Ptr note = m_manager.find_by_uri(m_manager.start_note_uri()); return (!note) ? "" : note->uri(); }
Glib::ustring RemoteControl::FindNote(const Glib::ustring& linked_title) { NoteBase::Ptr note = m_manager.find(linked_title); return (!note) ? "" : note->uri(); }