mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-18 03:10:28 +08:00

Stop it being a singleton. This means it needs to be passed around a lot. This sucks, but it's how it should be. I shouldn't be using a global variable to get around this. This is needed as Settings will soon become repo specific when we support multiple repos. This breaks saving the settings in a file, that feature was toggled off anyway. It needs to be thought over again.
22 lines
446 B
Dart
22 lines
446 B
Dart
import 'note.dart';
|
|
import 'notes_folder_config.dart';
|
|
import 'notes_folder_notifier.dart';
|
|
|
|
export 'notes_folder_config.dart';
|
|
|
|
abstract class NotesFolder implements NotesFolderNotifier {
|
|
bool get isEmpty;
|
|
bool get hasNotes;
|
|
String get name;
|
|
String get publicName;
|
|
|
|
List<Note> get notes;
|
|
List<NotesFolder> get subFolders;
|
|
NotesFolder get parent;
|
|
NotesFolder get fsFolder;
|
|
|
|
NotesFolderConfig get config;
|
|
|
|
String pathSpec();
|
|
}
|