forked from zamronypj/fano
/
UploadedFileCollectionIntf.pas
57 lines (44 loc) · 1.77 KB
/
UploadedFileCollectionIntf.pas
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
{*!
* Fano Web Framework (https://fanoframework.github.io)
*
* @link https://github.com/fanoframework/fano
* @copyright Copyright (c) 2018 Zamrony P. Juhara
* @license https://github.com/fanoframework/fano/blob/master/LICENSE (MIT)
*}
unit UploadedFileCollectionIntf;
interface
{$MODE OBJFPC}
{$H+}
uses
UploadedFileIntf;
type
IUploadedFileArray = array of IUploadedFile;
(*!------------------------------------------------
* interface for any class having capability as
* contain array of IUploadedFile instance
*
* @author Zamrony P. Juhara <zamronypj@yahoo.com>
*-----------------------------------------------*)
IUploadedFileCollection = interface
['{116083C1-4484-489D-AE15-5565B29CE802}']
(*!------------------------------------------------
* get total uploaded file in collection
*-------------------------------------------------
* @return number of item in collection
*------------------------------------------------*)
function count() : integer;
(*!------------------------------------------------
* get IUploadedFile instance by name
*-------------------------------------------------
* @return IUploadedFile instance
*------------------------------------------------*)
function getUploadedFile(const key : shortstring) : IUploadedFileArray;
(*!------------------------------------------------
* get IUploadedFile instance by index
*-------------------------------------------------
* @return IUploadedFile instance
*------------------------------------------------*)
function getUploadedFile(const indx : integer) : IUploadedFileArray;
end;
implementation
end.