Import notes from a nnex file.
| 686 | |
| 687 | // Import notes from a nnex file. |
| 688 | int CmdLineTool::importNotes(StartupConfig config) { |
| 689 | if (global.sharedMemory->attach()) { |
| 690 | std::cout << tr("This cannot be done with NixNote running.").toStdString() << endl; |
| 691 | return 16; |
| 692 | } |
| 693 | global.db = new DatabaseConnection("nixnote"); // Startup the database |
| 694 | config.importNotes->import(); |
| 695 | return 0; |
| 696 | } |
| 697 | |
| 698 | |
| 699 | // Alter a note's notebook or add/remove tags for a note. |