-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFile.Instance.iOSX.h
105 lines (88 loc) · 3.14 KB
/
File.Instance.iOSX.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
/**
* FileInstance for iOSX
* ------------------------------------------------------------------
* Copyright (c) Chi-Tai Dang
*
* @author Chi-Tai Dang
* @version 1.0
* @remarks
*
* This file is part of the Environs framework developed at the
* Lab for Human Centered Multimedia of the University of Augsburg.
* http://hcm-lab.de/environs
*
* Environ is free software; you can redistribute it and/or modify
* it under the terms of the Eclipse Public License v1.0.
* A copy of the license may be obtained at:
* http://www.eclipse.org/org/documents/epl-v10.html
* --------------------------------------------------------------------
*/
#pragma once
#ifndef INCLUDE_HCM_ENVIRONS_FILEINSTANCE_IOSX_H
#define INCLUDE_HCM_ENVIRONS_FILEINSTANCE_IOSX_H
#include "Environs.iOSX.Imp.h"
/**
* FileInstance iOSX
*
* @author Chi-Tai Dang, dang@hcm-lab.de, University of Augsburg
* @version 1.0
* @remarks
* ****************************************************************************************
*/
@interface FileInstance : NSObject
{
}
/**
* An integer type identifier to uniquely identify this FileInstance between two DeviceInstances.
* A value of 0 indicates an invalid fileID.
* */
@property (readonly, nonatomic) int fileID;
/**
* Used internally.
* */
@property (readonly, nonatomic) int type;
/**
* A utf-8 descriptor that was attached to this FileInstance in SendFile/SendBuffer
* */
@property (readonly) NSString * descriptor;
/**
* sent is true if this FileInstance is data that was sent or received (false).
* */
@property (readonly, nonatomic) bool sent;
/**
* created is a posix timestamp that determines the time and date that this FileInstance
* has been received or sent.
* */
@property (readonly, nonatomic) unsigned long long created;
/**
* The size in bytes of a buffer to send or data received.
* */
@property (readonly, nonatomic) long size;
/**
* The absolute path to the file if this FileInstance originates from a call to SendFile or received data.
* */
@property (readonly) NSString * path;
/**
* sendProgress is a value between 0-100 (percentage) that reflects the percentage of the
* file or buffer that has already been sent.
* If this value changes, then the corresponding device's DeviceObserver is notified
* with this FileInstance object as the sender
* and the change-flag FILE_INFO_ATTR_SEND_PROGRESS
* */
@property (readonly, nonatomic) int sendProgress;
/**
* receiveProgress is a value between 0-100 (percentage) that reflects the percentage of the
* file or buffer that has already been received.
* If this value changes, then the corresponding device's DeviceObserver is notified
* with this FileInstance object as the sender
* and the change-flag FILE_INFO_ATTR_RECEIVE_PROGRESS
* */
@property (readonly, nonatomic) int receiveProgress;
/**
* A reference to the DeviceInstance that is responsible for this FileInstance.
* */
@property (readonly, nonatomic) id device;
@property (readonly) NSString * toString;
@property (readonly) NSString * GetPath;
@end
#endif /// INCLUDE_HCM_ENVIRONS_FILEINSTANCE_IOSX_H