Пример #1
0
 Glib::ustring RemoteControl::CreateNote()
 {
   try {
     NoteBase::Ptr note = m_manager.create ();
     return note->uri();
   } 
   catch(...)
   {
   }
   return "";
 }
Пример #2
0
  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 "";
  }
Пример #3
0
 Glib::ustring RemoteControl::FindStartHereNote()
 {
   NoteBase::Ptr note = m_manager.find_by_uri(m_manager.start_note_uri());
   return (!note) ? "" : note->uri();
 }
Пример #4
0
 Glib::ustring RemoteControl::FindNote(const Glib::ustring& linked_title)
 {
   NoteBase::Ptr note = m_manager.find(linked_title);
   return (!note) ? "" : note->uri();
 }