OSDN Git Service

Initial import from http://code.google.com/p/connectbot/ (r416)
[android-x86/packages-apps-ConnectBot.git] / src / com / trilead / ssh2 / sftp / AttribFlags.java
1 \r
2 package com.trilead.ssh2.sftp;\r
3 \r
4 /**\r
5  * \r
6  * Attribute Flags. The 'valid-attribute-flags' field in\r
7  * the SFTP ATTRS data type specifies which of the fields are actually present.\r
8  *\r
9  * @author Christian Plattner, plattner@trilead.com\r
10  * @version $Id: AttribFlags.java,v 1.1 2007/10/15 12:49:55 cplattne Exp $\r
11  *\r
12  */\r
13 public class AttribFlags\r
14 {\r
15         /**\r
16          * Indicates that the 'allocation-size' field is present.\r
17          */\r
18         public static final int SSH_FILEXFER_ATTR_SIZE = 0x00000001;\r
19 \r
20         /** Protocol version 6:\r
21          * 0x00000002 was used in a previous version of this protocol.\r
22          * It is now a reserved value and MUST NOT appear in the mask.\r
23          * Some future version of this protocol may reuse this value.\r
24          */\r
25         public static final int SSH_FILEXFER_ATTR_V3_UIDGID = 0x00000002;\r
26 \r
27         /**\r
28          * Indicates that the 'permissions' field is present.\r
29          */\r
30         public static final int SSH_FILEXFER_ATTR_PERMISSIONS = 0x00000004;\r
31 \r
32         /**\r
33          * Indicates that the 'atime' and 'mtime' field are present\r
34          * (protocol v3).\r
35          */\r
36         public static final int SSH_FILEXFER_ATTR_V3_ACMODTIME = 0x00000008;\r
37 \r
38         /**\r
39          * Indicates that the 'atime' field is present.\r
40          */\r
41         public static final int SSH_FILEXFER_ATTR_ACCESSTIME = 0x00000008;\r
42 \r
43         /**\r
44          * Indicates that the 'createtime' field is present.\r
45          */\r
46         public static final int SSH_FILEXFER_ATTR_CREATETIME = 0x00000010;\r
47 \r
48         /**\r
49          * Indicates that the 'mtime' field is present.\r
50          */\r
51         public static final int SSH_FILEXFER_ATTR_MODIFYTIME = 0x00000020;\r
52 \r
53         /**\r
54          * Indicates that the 'acl' field is present.\r
55          */\r
56         public static final int SSH_FILEXFER_ATTR_ACL = 0x00000040;\r
57 \r
58         /**\r
59          * Indicates that the 'owner' and 'group' fields are present.\r
60          */\r
61         public static final int SSH_FILEXFER_ATTR_OWNERGROUP = 0x00000080;\r
62 \r
63         /**\r
64          * Indicates that additionally to the 'atime', 'createtime',\r
65          * 'mtime' and 'ctime' fields (if present), there is also\r
66          * 'atime-nseconds', 'createtime-nseconds',  'mtime-nseconds' \r
67          * and 'ctime-nseconds'.\r
68          */\r
69         public static final int SSH_FILEXFER_ATTR_SUBSECOND_TIMES = 0x00000100;\r
70 \r
71         /**\r
72          * Indicates that the 'attrib-bits' and 'attrib-bits-valid'\r
73          * fields are present.\r
74          */\r
75         public static final int SSH_FILEXFER_ATTR_BITS = 0x00000200;\r
76 \r
77         /**\r
78          * Indicates that the 'allocation-size' field is present.\r
79          */\r
80         public static final int SSH_FILEXFER_ATTR_ALLOCATION_SIZE = 0x00000400;\r
81 \r
82         /**\r
83          * Indicates that the 'text-hint' field is present.\r
84          */\r
85         public static final int SSH_FILEXFER_ATTR_TEXT_HINT = 0x00000800;\r
86 \r
87         /**\r
88          * Indicates that the 'mime-type' field is present.\r
89          */\r
90         public static final int SSH_FILEXFER_ATTR_MIME_TYPE = 0x00001000;\r
91 \r
92         /**\r
93          * Indicates that the 'link-count' field is present.\r
94          */\r
95         public static final int SSH_FILEXFER_ATTR_LINK_COUNT = 0x00002000;\r
96 \r
97         /**\r
98          * Indicates that the 'untranslated-name' field is present.\r
99          */\r
100         public static final int SSH_FILEXFER_ATTR_UNTRANSLATED_NAME = 0x00004000;\r
101 \r
102         /**\r
103          * Indicates that the 'ctime' field is present.\r
104          */\r
105         public static final int SSH_FILEXFER_ATTR_CTIME = 0x00008000;\r
106 \r
107         /**\r
108          * Indicates that the 'extended-count' field (and probablby some\r
109          * 'extensions') is present.\r
110          */\r
111         public static final int SSH_FILEXFER_ATTR_EXTENDED = 0x80000000;\r
112 }\r