19 lines
522 B
V
19 lines
522 B
V
module vfs_calendar
|
|
|
|
import incubaid.herolib.vfs
|
|
import incubaid.herolib.circles.mcc.db as core
|
|
|
|
// CalendarVFS represents the virtual file system for calendar data
|
|
// It provides a read-only view of calendar data organized by calendars
|
|
pub struct CalendarVFS {
|
|
pub mut:
|
|
calendar_db &core.CalendarDB // Reference to the calendar database
|
|
}
|
|
|
|
// new_calendar_vfs creates a new contacts VFS
|
|
pub fn new_calendar_vfs(calendar_db &core.CalendarDB) !vfs.VFSImplementation {
|
|
return &CalendarVFS{
|
|
calendar_db: calendar_db
|
|
}
|
|
}
|