More skeleton methods
It's too late in the evening to get more done...
This commit is contained in:
parent
d029df645e
commit
ccb1a93aa5
|
@ -25,3 +25,29 @@ func (dm *DataModel) NewProtocol(name string) {
|
||||||
func (dm *DataModel) SaveNewProtocol(editorContent ProtocolEditor) {
|
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) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
package npc
|
||||||
|
|
||||||
|
import "fyne.io/fyne/v2"
|
||||||
|
|
||||||
|
type PackageEditor struct {
|
||||||
|
Representation *fyne.Container
|
||||||
|
}
|
|
@ -42,4 +42,5 @@ type DataModel struct {
|
||||||
Name string // User defined name of his current work (filename later)
|
Name string // User defined name of his current work (filename later)
|
||||||
Protocols []ProtocolStructure // List of protocols in order of the stack
|
Protocols []ProtocolStructure // List of protocols in order of the stack
|
||||||
Data []FieldValue // Data of the fields of all protocols
|
Data []FieldValue // Data of the fields of all protocols
|
||||||
|
ProtocolCreation bool
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue