More skeleton methods

It's too late in the evening to get more done...
This commit is contained in:
Marcel Otte 2022-11-24 22:51:02 +01:00
parent d029df645e
commit ccb1a93aa5
3 changed files with 37 additions and 3 deletions

View File

@ -25,3 +25,29 @@ func (dm *DataModel) NewProtocol(name string) {
func (dm *DataModel) SaveNewProtocol(editorContent ProtocolEditor) {
}
func (dm *DataModel) GetPackageEditor() *PackageEditor {
return nil
}
func (dm *DataModel) SwitchToProtocolEditor() {
}
func (dm *DataModel) SyncPackageEditor(pkgedt *PackageEditor) {
}
func (dm *DataModel) GetPackageBytes() []byte {
return []byte{}
}
func (dm *DataModel) FromSaved(path string) {
}
func (dm *DataModel) SaveAsPcap(path string) {
}

7
packageeditor.go Normal file
View File

@ -0,0 +1,7 @@
package npc
import "fyne.io/fyne/v2"
type PackageEditor struct {
Representation *fyne.Container
}

View File

@ -39,7 +39,8 @@ type DOPMetadata struct {
}
type DataModel struct {
Name string // User defined name of his current work (filename later)
Protocols []ProtocolStructure // List of protocols in order of the stack
Data []FieldValue // Data of the fields of all protocols
Name string // User defined name of his current work (filename later)
Protocols []ProtocolStructure // List of protocols in order of the stack
Data []FieldValue // Data of the fields of all protocols
ProtocolCreation bool
}