blob: 3e3a2c6275f8767431a811ecd221b464ad4a3a07 (
plain)
1 /**
2 * Copyright (C) 2014 Aaron Ball <nullspoon@iohq.net>
3 *
4 * Noteless is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * Noteless is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with noteless. If not, see <http://www.gnu.org/licenses/>.
16 */
17 using namespace std;
18 #include <stdlib.h>
19 #include <dirent.h>
20 #include <string>
21 #include <vector>
22 #include "note.h"
23 #include "path.h"
24
25 #ifndef LIB_NOTE_COLLECTION_H
26 #define LIB_NOTE_COLLECTION_H
27 class note_list {
28 private:
29 // Properties
30 vector<note> notes;
31 string _dirname;
32 string _ext;
33 // Methods
34 void get_notes( string, string, string );
35
36 public:
37 // Methods
38 note_list( string, string );
39 int add( string, string );
40 int create( string, string );
41 int edit( string, string );
42 int rm( string );
43 vector<string> enum_names();
44 vector<string> find( bool, string );
45 int cat_note( string, vector<string>* );
46 int find_note_id( string );
47 };
48 #endif
|