videoLat  2.1
Video conferencing delay measurements
Document.h
Go to the documentation of this file.
1 //
5 // Copyright 2010-2019 Centrum voor Wiskunde en Informatica. Licensed under GPL3.
6 //
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import "compat.h"
11 #import "MeasurementDataStore.h"
13 #import "MeasurementType.h"
14 
19 @interface Document :
20 #ifdef WITH_UIKIT
22 #else
23  NSDocument <NSWindowDelegate, UploadQueryDelegate, UploadDelegate>
24 #endif
25 {
27  BOOL dontUpload;
28 }
29 
30 @property(strong) IBOutlet MeasurementDataStore *dataStore;
31 @property(strong) IBOutlet MeasurementDistribution *dataDistribution;
32 
33 #ifdef WITH_UIKIT
34 + (NSURL *)inventURLForDocument: (MeasurementDataStore *)dataStore;
36 #endif
37 - (IBAction)newDocumentComplete: (id)sender;
38 - (IBAction)export: (id)sender;
39 - (BOOL)_exportCSV: (NSString *)csvData forType: (NSString *)descr title: (NSString *)title;
40 - (NSString *) asCSVString;
41 - (void)changed;
42 - (void)_changed;
43 - (void)calibrationIsFresh: (BOOL)answer;
44 - (void)_doShouldUpload;
45 
46 #ifdef WITH_APPKIT
47 - (void)_setCalibrationFileName;
48 #endif
49 @end
Definition: MeasurementType.h:22
Definition: Document.h:19
IBOutlet MeasurementDistribution * dataDistribution
distribution of dataStore
Definition: Document.h:33
MeasurementType * myType
Internal: type of dataStore measurement.
Definition: Document.h:28
Defines the MeasurementDataStore object.
Definition: protocols.h:329
Definition: MeasurementDataStore.h:19
Defines the MeasurementDistribution object.
BOOL dontUpload
Internal: don&#39;t attempt uploading this document.
Definition: Document.h:29
IBOutlet MeasurementDataStore * dataStore
data for this document
Definition: Document.h:32
void _doShouldUpload()
Help for shouldUpload, runs in main thread.
Definition: Document.m:304
void changed()
Increment document change count because user made a change, also clears dontUpload flag...
Definition: Document.m:268
Defines, typedefs and functions to handle iOS/OSX compatibility.
Definition: MeasurementDistribution.h:21
void _changed()
Internal: increment document change count.
Definition: Document.m:274
Definition of MeasurementType object.
NSString * asCSVString()
Helper for _exportCSV: return metadata as CSV string.
Definition: Document.m:231
Definition: protocols.h:322