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 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353
|
/*
* This file is part of gtkD.
*
* gtkD is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 3
* of the License, or (at your option) any later version, with
* some exceptions, please read the COPYING file.
*
* gtkD is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with gtkD; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
*/
// generated automatically - do not change
// find conversion definition on APILookup.txt
// implement new conversion functionalities on the wrap.utils pakage
module secretc.secrettypes;
public import gtkc.gtktypes;
/**
* Flags for secret_collection_create().
*/
public enum SecretCollectionCreateFlags
{
/**
* no flags
*/
COLLECTION_CREATE_NONE = 0,
}
alias SecretCollectionCreateFlags CollectionCreateFlags;
/**
* Flags which determine which parts of the #SecretCollection proxy are initialized.
*/
public enum SecretCollectionFlags
{
/**
* no flags
*/
NONE = 0,
/**
* items have or should be loaded
*/
LOAD_ITEMS = 2,
}
alias SecretCollectionFlags CollectionFlags;
public enum SecretError
{
PROTOCOL = 1,
IS_LOCKED = 2,
NO_SUCH_OBJECT = 3,
ALREADY_EXISTS = 4,
}
alias SecretError Error;
/**
* Flags for secret_item_create().
*/
public enum SecretItemCreateFlags
{
/**
* no flags
*/
NONE = 0,
/**
* replace an item with the same attributes.
*/
REPLACE = 2,
}
alias SecretItemCreateFlags ItemCreateFlags;
/**
* Flags which determine which parts of the #SecretItem proxy are initialized.
*/
public enum SecretItemFlags
{
/**
* no flags
*/
NONE = 0,
/**
* a secret has been (or should be) loaded for #SecretItem
*/
LOAD_SECRET = 2,
}
alias SecretItemFlags ItemFlags;
/**
* The type of an attribute in a #SecretSchema. Attributes are stored as strings
* in the Secret Service, and the attribute types simply define standard ways
* to store integer and boolean values as strings.
*/
public enum SecretSchemaAttributeType
{
/**
* a utf-8 string attribute
*/
STRING = 0,
/**
* an integer attribute, stored as a decimal
*/
INTEGER = 1,
/**
* a boolean attribute, stored as 'true' or 'false'
*/
BOOLEAN = 2,
}
alias SecretSchemaAttributeType SchemaAttributeType;
/**
* Flags for a #SecretSchema definition.
*/
public enum SecretSchemaFlags
{
/**
* no flags for the schema
*/
NONE = 0,
/**
* don't match the schema name when looking up or
* removing passwords
*/
DONT_MATCH_NAME = 2,
}
alias SecretSchemaFlags SchemaFlags;
/**
* Various flags to be used with secret_service_search() and secret_service_search_sync().
*/
public enum SecretSearchFlags
{
/**
* no flags
*/
NONE = 0,
/**
* all the items matching the search will be returned, instead of just the first one
*/
ALL = 2,
/**
* unlock locked items while searching
*/
UNLOCK = 4,
/**
* while searching load secrets for items that are not locked
*/
LOAD_SECRETS = 8,
}
alias SecretSearchFlags SearchFlags;
/**
* Flags which determine which parts of the #SecretService proxy are initialized
* during a secret_service_get() or secret_service_open() operation.
*/
public enum SecretServiceFlags
{
/**
* no flags for initializing the #SecretService
*/
NONE = 0,
/**
* establish a session for transfer of secrets
* while initializing the #SecretService
*/
OPEN_SESSION = 2,
/**
* load collections while initializing the
* #SecretService
*/
LOAD_COLLECTIONS = 4,
}
alias SecretServiceFlags ServiceFlags;
struct SecretCollection
{
GDBusProxy parent;
SecretCollectionPrivate* pv;
}
/**
* The class for #SecretCollection.
*/
struct SecretCollectionClass
{
/**
* the parent class
*/
GDBusProxyClass parentClass;
void*[8] padding;
}
struct SecretCollectionPrivate;
struct SecretItem
{
GDBusProxy parentInstance;
SecretItemPrivate* pv;
}
/**
* The class for #SecretItem.
*/
struct SecretItemClass
{
/**
* the parent class
*/
GDBusProxyClass parentClass;
void*[4] padding;
}
struct SecretItemPrivate;
struct SecretPrompt
{
GDBusProxy parentInstance;
SecretPromptPrivate* pv;
}
/**
* The class for #SecretPrompt.
*/
struct SecretPromptClass
{
/**
* the parent class
*/
GDBusProxyClass parentClass;
void*[8] padding;
}
struct SecretPromptPrivate;
struct SecretSchema
{
/**
* the dotted name of the schema
*/
const(char)* name;
/**
* flags for the schema
*/
SecretSchemaFlags flags;
/**
* the attribute names and types of those attributes
*/
SecretSchemaAttribute[32] attributes;
int reserved;
void* reserved1;
void* reserved2;
void* reserved3;
void* reserved4;
void* reserved5;
void* reserved6;
void* reserved7;
}
/**
* An attribute in a #SecretSchema.
*/
struct SecretSchemaAttribute
{
/**
* name of the attribute
*/
const(char)* name;
/**
* the type of the attribute
*/
SecretSchemaAttributeType type;
}
struct SecretService
{
GDBusProxy parent;
SecretServicePrivate* pv;
}
/**
* The class for #SecretService.
*/
struct SecretServiceClass
{
/**
* the parent class
*/
GDBusProxyClass parentClass;
/**
* the #GType of the #SecretCollection objects instantiated
* by the #SecretService proxy
*/
GType collectionGtype;
/**
* the #GType of the #SecretItem objects instantiated by the
* #SecretService proxy
*/
GType itemGtype;
/**
*
* Params:
* self = the secret service
* prompt = the prompt
* cancellable = optional cancellation object
* returnType = the variant type of the prompt result
* Return: %NULL if the prompt was dismissed or an error occurred,
* a variant result if the prompt was successful
*
* Throws: GException on failure.
*/
extern(C) GVariant* function(SecretService* self, SecretPrompt* prompt, GCancellable* cancellable, GVariantType* returnType, GError** err) promptSync;
/** */
extern(C) void function(SecretService* self, SecretPrompt* prompt, GVariantType* returnType, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) promptAsync;
/**
*
* Params:
* self = the secret service
* result = the asynchronous result passed to the callback
* Return: %NULL if the prompt was dismissed or an error occurred,
* a variant result if the prompt was successful
*
* Throws: GException on failure.
*/
extern(C) GVariant* function(SecretService* self, GAsyncResult* result, GError** err) promptFinish;
/**
*
* Params:
* self = the secret service
* Return: the gobject type for collections
*/
extern(C) GType function(SecretService* self) getCollectionGtype;
/**
*
* Params:
* self = the service
* Return: the gobject type for items
*/
extern(C) GType function(SecretService* self) getItemGtype;
void*[14] padding;
}
struct SecretServicePrivate;
struct SecretValue;
|