enums.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _LIBGNOMEVFSMM_ENUMS_H
00004 #define _LIBGNOMEVFSMM_ENUMS_H
00005 
00006 
00007 #include <glibmm.h>
00008 
00009 /* $Id: enums.hg,v 1.10 2004/07/17 11:41:50 murrayc Exp $ */
00010 // -*- C++ -*- // this is for the .hg, I realize gensig puts one in
00011 
00012 /* Copyright 2003 gnome-vfsmm Development Team
00013  *
00014  * This library is free software; you can redistribute it and/or
00015  * modify it under the terms of the GNU Library General Public
00016  * License as published by the Free Software Foundation; either
00017  * version 2 of the License, or (at your option) any later version.
00018  *
00019  * This library is distributed in the hope that it will be useful,
00020  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00021  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00022  * Library General Public License for more details.
00023  *
00024  * You should have received a copy of the GNU Library General Public
00025  * License along with this library; if not, write to the Free
00026  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00027  */
00028 
00029 #include <libgnomevfs/gnome-vfs-file-info.h>
00030 #include <libgnomevfs/gnome-vfs-result.h>
00031 #include <libgnomevfs/gnome-vfs-mime-handlers.h>
00032  
00033 
00034 namespace Gnome
00035 {
00036 
00037 namespace Vfs
00038 {
00039 
00040 
00054 enum FileInfoOptions
00055 {
00056   FILE_INFO_DEFAULT = 0,
00057   FILE_INFO_GET_MIME_TYPE = 1 << 0,
00058   FILE_INFO_FORCE_FAST_MIME_TYPE = 1 << 1,
00059   FILE_INFO_FORCE_SLOW_MIME_TYPE = 1 << 2,
00060   FILE_INFO_FOLLOW_LINKS = 1 << 3,
00061   FILE_INFO_GET_ACCESS_RIGHTS = 1 << 4
00062 };
00063 
00065 inline FileInfoOptions operator|(FileInfoOptions lhs, FileInfoOptions rhs)
00066   { return static_cast<FileInfoOptions>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs)); }
00067 
00069 inline FileInfoOptions operator&(FileInfoOptions lhs, FileInfoOptions rhs)
00070   { return static_cast<FileInfoOptions>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs)); }
00071 
00073 inline FileInfoOptions operator^(FileInfoOptions lhs, FileInfoOptions rhs)
00074   { return static_cast<FileInfoOptions>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs)); }
00075 
00077 inline FileInfoOptions operator~(FileInfoOptions flags)
00078   { return static_cast<FileInfoOptions>(~static_cast<unsigned>(flags)); }
00079 
00081 inline FileInfoOptions& operator|=(FileInfoOptions& lhs, FileInfoOptions rhs)
00082   { return (lhs = static_cast<FileInfoOptions>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs))); }
00083 
00085 inline FileInfoOptions& operator&=(FileInfoOptions& lhs, FileInfoOptions rhs)
00086   { return (lhs = static_cast<FileInfoOptions>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs))); }
00087 
00089 inline FileInfoOptions& operator^=(FileInfoOptions& lhs, FileInfoOptions rhs)
00090   { return (lhs = static_cast<FileInfoOptions>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs))); }
00091 
00092 
00096 enum Result
00097 {
00098   OK,
00099   ERR_NOT_FOUND,
00100   ERR_GENERIC,
00101   ERR_INTERNAL,
00102   ERR_BAD_PARAMETERS,
00103   ERR_NOT_SUPPORTED,
00104   ERR_IO,
00105   ERR_CORRUPTED_DATA,
00106   ERR_WRONG_FORMAT,
00107   ERR_BAD_FILE,
00108   ERR_TOO_BIG,
00109   ERR_NO_SPACE,
00110   ERR_READ_ONLY,
00111   ERR_INVALID_URI,
00112   ERR_NOT_OPEN,
00113   ERR_INVALID_OPEN_MODE,
00114   ERR_ACCESS_DENIED,
00115   ERR_TOO_MANY_OPEN_FILES,
00116   ERR_EOF,
00117   ERR_NOT_A_DIRECTORY,
00118   ERR_IN_PROGRESS,
00119   ERR_INTERRUPTED,
00120   ERR_FILE_EXISTS,
00121   ERR_LOOP,
00122   ERR_NOT_PERMITTED,
00123   ERR_IS_DIRECTORY,
00124   ERR_NO_MEMORY,
00125   ERR_HOST_NOT_FOUND,
00126   ERR_INVALID_HOST_NAME,
00127   ERR_HOST_HAS_NO_ADDRESS,
00128   ERR_LOGIN_FAILED,
00129   ERR_CANCELLED,
00130   ERR_DIRECTORY_BUSY,
00131   ERR_DIRECTORY_NOT_EMPTY,
00132   ERR_TOO_MANY_LINKS,
00133   ERR_READ_ONLY_FILE_SYSTEM,
00134   ERR_NOT_SAME_FILE_SYSTEM,
00135   ERR_NAME_TOO_LONG,
00136   ERR_SERVICE_NOT_AVAILABLE,
00137   ERR_SERVICE_OBSOLETE,
00138   ERR_PROTOCOL_ERROR,
00139   ERR_NO_MASTER_BROWSER,
00140   ERR_NO_DEFAULT,
00141   ERR_NO_HANDLER,
00142   ERR_PARSE,
00143   ERR_LAUNCH,
00144   ERR_TIMEOUT,
00145   ERR_NAMESERVER,
00146   NUM_ERRORS
00147 };
00148 
00149 
00150 // These conflict with defines in some windows headers. Please use the
00151 // enumerators beginning with ERR_ instead. These are only provided for
00152 // backwards compatibility
00153 #ifndef G_OS_WIN32
00154 // We can't autogenerate these, but people shouldn't use them anymore anyway.
00155 // If enumerators are added in gnome-vfs, we only wrap them as ERR_*.
00156 const Result ERROR_NOT_FOUND = ERR_NOT_FOUND;
00157 const Result ERROR_GENERIC = ERR_GENERIC;
00158 const Result ERROR_INTERNAL = ERR_INTERNAL;
00159 const Result ERROR_BAD_PARAMETERS = ERR_BAD_PARAMETERS;
00160 const Result ERROR_NOT_SUPPORTED = ERR_NOT_SUPPORTED;
00161 const Result ERROR_IO = ERR_IO;
00162 const Result ERROR_CORRUPTED_DATA = ERR_CORRUPTED_DATA;
00163 const Result ERROR_WRONG_FORMAT = ERR_WRONG_FORMAT;
00164 const Result ERROR_BAD_FILE = ERR_BAD_FILE;
00165 const Result ERROR_TOO_BIG = ERR_TOO_BIG;
00166 const Result ERROR_NO_SPACE = ERR_NO_SPACE;
00167 const Result ERROR_READ_ONLY = ERR_READ_ONLY;
00168 const Result ERROR_INVALID_URI = ERR_INVALID_URI;
00169 const Result ERROR_NOT_OPEN = ERR_NOT_OPEN;
00170 const Result ERROR_INVALID_OPEN_MODE = ERR_INVALID_OPEN_MODE;
00171 const Result ERROR_ACCESS_DENIED = ERR_ACCESS_DENIED;
00172 const Result ERROR_TOO_MANY_OPEN_FILES = ERR_TOO_MANY_OPEN_FILES;
00173 const Result ERROR_EOF = ERR_EOF;
00174 const Result ERROR_NOT_A_DIRECTORY = ERR_NOT_A_DIRECTORY;
00175 const Result ERROR_IN_PROGRESS = ERR_IN_PROGRESS;
00176 const Result ERROR_INTERRUPTED = ERR_INTERRUPTED;
00177 const Result ERROR_FILE_EXISTS = ERR_FILE_EXISTS;
00178 const Result ERROR_LOOP = ERR_LOOP;
00179 const Result ERROR_NOT_PERMITTED = ERR_NOT_PERMITTED;
00180 const Result ERROR_IS_DIRECTORY = ERR_IS_DIRECTORY;
00181 const Result ERROR_NO_MEMORY = ERR_NO_MEMORY;
00182 const Result ERROR_HOST_NOT_FOUND = ERR_HOST_NOT_FOUND;
00183 const Result ERROR_INVALID_HOST_NAME = ERR_INVALID_HOST_NAME;
00184 const Result ERROR_HOST_HAS_NO_ADDRESS = ERR_HOST_HAS_NO_ADDRESS;
00185 const Result ERROR_LOGIN_FAILED = ERR_LOGIN_FAILED;
00186 const Result ERROR_CANCELLED = ERR_CANCELLED;
00187 const Result ERROR_DIRECTORY_BUSY = ERR_DIRECTORY_BUSY;
00188 const Result ERROR_DIRECTORY_NOT_EMPTY = ERR_DIRECTORY_NOT_EMPTY;
00189 const Result ERROR_TOO_MANY_LINKS = ERR_TOO_MANY_LINKS;
00190 const Result ERROR_READ_ONLY_FILE_SYSTEM = ERR_READ_ONLY_FILE_SYSTEM;
00191 const Result ERROR_NOT_SAME_FILE_SYSTEM = ERR_NOT_SAME_FILE_SYSTEM;
00192 const Result ERROR_NAME_TOO_LONG = ERR_NAME_TOO_LONG;
00193 const Result ERROR_SERVICE_NOT_AVAILABLE = ERR_SERVICE_NOT_AVAILABLE;
00194 const Result ERROR_SERVICE_OBSOLETE = ERR_SERVICE_OBSOLETE;
00195 const Result ERROR_PROTOCOL_ERROR = ERR_PROTOCOL_ERROR;
00196 const Result ERROR_NO_MASTER_BROWSER = ERR_NO_MASTER_BROWSER;
00197 const Result ERROR_NO_DEFAULT = ERR_NO_DEFAULT;
00198 const Result ERROR_NO_HANDLER = ERR_NO_HANDLER;
00199 const Result ERROR_PARSE = ERR_PARSE;
00200 const Result ERROR_LAUNCH = ERR_LAUNCH;
00201 const Result ERROR_TIMEOUT = ERR_TIMEOUT;
00202 const Result ERROR_NAMESERVER = ERR_NAMESERVER;
00203 #endif
00204 
00216 enum URIHideOptions
00217 {
00218   URI_HIDE_NONE = 0,
00219   URI_HIDE_USER_NAME = 1 << 0,
00220   URI_HIDE_PASSWORD = 1 << 1,
00221   URI_HIDE_HOST_NAME = 1 << 2,
00222   URI_HIDE_HOST_PORT = 1 << 3,
00223   URI_HIDE_TOPLEVEL_METHOD = 1 << 4,
00224   URI_HIDE_FRAGMENT_IDENTIFIER = 1 << 8
00225 };
00226 
00228 inline URIHideOptions operator|(URIHideOptions lhs, URIHideOptions rhs)
00229   { return static_cast<URIHideOptions>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs)); }
00230 
00232 inline URIHideOptions operator&(URIHideOptions lhs, URIHideOptions rhs)
00233   { return static_cast<URIHideOptions>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs)); }
00234 
00236 inline URIHideOptions operator^(URIHideOptions lhs, URIHideOptions rhs)
00237   { return static_cast<URIHideOptions>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs)); }
00238 
00240 inline URIHideOptions operator~(URIHideOptions flags)
00241   { return static_cast<URIHideOptions>(~static_cast<unsigned>(flags)); }
00242 
00244 inline URIHideOptions& operator|=(URIHideOptions& lhs, URIHideOptions rhs)
00245   { return (lhs = static_cast<URIHideOptions>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs))); }
00246 
00248 inline URIHideOptions& operator&=(URIHideOptions& lhs, URIHideOptions rhs)
00249   { return (lhs = static_cast<URIHideOptions>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs))); }
00250 
00252 inline URIHideOptions& operator^=(URIHideOptions& lhs, URIHideOptions rhs)
00253   { return (lhs = static_cast<URIHideOptions>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs))); }
00254 
00255 
00267 enum DirectoryVisitOptions
00268 {
00269   DIRECTORY_VISIT_DEFAULT = 0,
00270   DIRECTORY_VISIT_SAMEFS = 1 << 0,
00271   DIRECTORY_VISIT_LOOPCHECK = 1 << 1
00272 };
00273 
00275 inline DirectoryVisitOptions operator|(DirectoryVisitOptions lhs, DirectoryVisitOptions rhs)
00276   { return static_cast<DirectoryVisitOptions>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs)); }
00277 
00279 inline DirectoryVisitOptions operator&(DirectoryVisitOptions lhs, DirectoryVisitOptions rhs)
00280   { return static_cast<DirectoryVisitOptions>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs)); }
00281 
00283 inline DirectoryVisitOptions operator^(DirectoryVisitOptions lhs, DirectoryVisitOptions rhs)
00284   { return static_cast<DirectoryVisitOptions>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs)); }
00285 
00287 inline DirectoryVisitOptions operator~(DirectoryVisitOptions flags)
00288   { return static_cast<DirectoryVisitOptions>(~static_cast<unsigned>(flags)); }
00289 
00291 inline DirectoryVisitOptions& operator|=(DirectoryVisitOptions& lhs, DirectoryVisitOptions rhs)
00292   { return (lhs = static_cast<DirectoryVisitOptions>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs))); }
00293 
00295 inline DirectoryVisitOptions& operator&=(DirectoryVisitOptions& lhs, DirectoryVisitOptions rhs)
00296   { return (lhs = static_cast<DirectoryVisitOptions>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs))); }
00297 
00299 inline DirectoryVisitOptions& operator^=(DirectoryVisitOptions& lhs, DirectoryVisitOptions rhs)
00300   { return (lhs = static_cast<DirectoryVisitOptions>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs))); }
00301 
00302 
00314 enum OpenMode
00315 {
00316   OPEN_NONE = 0,
00317   OPEN_READ = 1 << 0,
00318   OPEN_WRITE = 1 << 1,
00319   OPEN_RANDOM = 1 << 2
00320 };
00321 
00323 inline OpenMode operator|(OpenMode lhs, OpenMode rhs)
00324   { return static_cast<OpenMode>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs)); }
00325 
00327 inline OpenMode operator&(OpenMode lhs, OpenMode rhs)
00328   { return static_cast<OpenMode>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs)); }
00329 
00331 inline OpenMode operator^(OpenMode lhs, OpenMode rhs)
00332   { return static_cast<OpenMode>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs)); }
00333 
00335 inline OpenMode operator~(OpenMode flags)
00336   { return static_cast<OpenMode>(~static_cast<unsigned>(flags)); }
00337 
00339 inline OpenMode& operator|=(OpenMode& lhs, OpenMode rhs)
00340   { return (lhs = static_cast<OpenMode>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs))); }
00341 
00343 inline OpenMode& operator&=(OpenMode& lhs, OpenMode rhs)
00344   { return (lhs = static_cast<OpenMode>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs))); }
00345 
00347 inline OpenMode& operator^=(OpenMode& lhs, OpenMode rhs)
00348   { return (lhs = static_cast<OpenMode>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs))); }
00349 
00350 
00354 enum SeekPosition
00355 {
00356   SEEK_POS_START,
00357   SEEK_POS_CURRENT,
00358   SEEK_POS_END
00359 };
00360 
00361 
00373 enum FileFlags
00374 {
00375   FILE_FLAGS_NONE = 0,
00376   FILE_FLAGS_SYMLINK = 1 << 0,
00377   FILE_FLAGS_LOCAL = 1 << 1
00378 };
00379 
00381 inline FileFlags operator|(FileFlags lhs, FileFlags rhs)
00382   { return static_cast<FileFlags>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs)); }
00383 
00385 inline FileFlags operator&(FileFlags lhs, FileFlags rhs)
00386   { return static_cast<FileFlags>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs)); }
00387 
00389 inline FileFlags operator^(FileFlags lhs, FileFlags rhs)
00390   { return static_cast<FileFlags>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs)); }
00391 
00393 inline FileFlags operator~(FileFlags flags)
00394   { return static_cast<FileFlags>(~static_cast<unsigned>(flags)); }
00395 
00397 inline FileFlags& operator|=(FileFlags& lhs, FileFlags rhs)
00398   { return (lhs = static_cast<FileFlags>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs))); }
00399 
00401 inline FileFlags& operator&=(FileFlags& lhs, FileFlags rhs)
00402   { return (lhs = static_cast<FileFlags>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs))); }
00403 
00405 inline FileFlags& operator^=(FileFlags& lhs, FileFlags rhs)
00406   { return (lhs = static_cast<FileFlags>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs))); }
00407 
00408 
00409 // FILE_TYPE_UNKNOWN is a define in winbase.h
00413 enum FileType
00414 {
00415   FILE_TYPE_UNKNOWN_TYPE,
00416   FILE_TYPE_REGULAR,
00417   FILE_TYPE_DIRECTORY,
00418   FILE_TYPE_FIFO,
00419   FILE_TYPE_SOCKET,
00420   FILE_TYPE_CHARACTER_DEVICE,
00421   FILE_TYPE_BLOCK_DEVICE,
00422   FILE_TYPE_SYMBOLIC_LINK
00423 };
00424 
00425 
00426 #ifndef G_OS_WIN32
00427 const FileType FILE_TYPE_UNKNOWN = FILE_TYPE_UNKNOWN_TYPE;
00428 #endif
00429 
00441 enum FilePermissions
00442 {
00443   PERM_SUID = S_ISUID,
00444   PERM_SGID = S_ISGID,
00445   PERM_STICKY = 01000,
00446   PERM_USER_READ = S_IRUSR,
00447   PERM_USER_WRITE = S_IWUSR,
00448   PERM_USER_EXEC = S_IXUSR,
00449   PERM_USER_ALL = S_IRUSR | S_IWUSR | S_IXUSR,
00450   PERM_GROUP_READ = S_IRGRP,
00451   PERM_GROUP_WRITE = S_IWGRP,
00452   PERM_GROUP_EXEC = S_IXGRP,
00453   PERM_GROUP_ALL = S_IRGRP | S_IWGRP | S_IXGRP,
00454   PERM_OTHER_READ = S_IROTH,
00455   PERM_OTHER_WRITE = S_IWOTH,
00456   PERM_OTHER_EXEC = S_IXOTH,
00457   PERM_OTHER_ALL = S_IROTH | S_IWOTH | S_IXOTH,
00458   PERM_ACCESS_READABLE = 1 << 16,
00459   PERM_ACCESS_WRITABLE = 1 << 17,
00460   PERM_ACCESS_EXECUTABLE = 1 << 18
00461 };
00462 
00464 inline FilePermissions operator|(FilePermissions lhs, FilePermissions rhs)
00465   { return static_cast<FilePermissions>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs)); }
00466 
00468 inline FilePermissions operator&(FilePermissions lhs, FilePermissions rhs)
00469   { return static_cast<FilePermissions>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs)); }
00470 
00472 inline FilePermissions operator^(FilePermissions lhs, FilePermissions rhs)
00473   { return static_cast<FilePermissions>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs)); }
00474 
00476 inline FilePermissions operator~(FilePermissions flags)
00477   { return static_cast<FilePermissions>(~static_cast<unsigned>(flags)); }
00478 
00480 inline FilePermissions& operator|=(FilePermissions& lhs, FilePermissions rhs)
00481   { return (lhs = static_cast<FilePermissions>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs))); }
00482 
00484 inline FilePermissions& operator&=(FilePermissions& lhs, FilePermissions rhs)
00485   { return (lhs = static_cast<FilePermissions>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs))); }
00486 
00488 inline FilePermissions& operator^=(FilePermissions& lhs, FilePermissions rhs)
00489   { return (lhs = static_cast<FilePermissions>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs))); }
00490 
00491 
00503 enum SetFileInfoMask
00504 {
00505   SET_FILE_INFO_NONE = 0,
00506   SET_FILE_INFO_NAME = 1 << 0,
00507   SET_FILE_INFO_PERMISSIONS = 1 << 1,
00508   SET_FILE_INFO_OWNER = 1 << 2,
00509   SET_FILE_INFO_TIME = 1 << 3
00510 };
00511 
00513 inline SetFileInfoMask operator|(SetFileInfoMask lhs, SetFileInfoMask rhs)
00514   { return static_cast<SetFileInfoMask>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs)); }
00515 
00517 inline SetFileInfoMask operator&(SetFileInfoMask lhs, SetFileInfoMask rhs)
00518   { return static_cast<SetFileInfoMask>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs)); }
00519 
00521 inline SetFileInfoMask operator^(SetFileInfoMask lhs, SetFileInfoMask rhs)
00522   { return static_cast<SetFileInfoMask>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs)); }
00523 
00525 inline SetFileInfoMask operator~(SetFileInfoMask flags)
00526   { return static_cast<SetFileInfoMask>(~static_cast<unsigned>(flags)); }
00527 
00529 inline SetFileInfoMask& operator|=(SetFileInfoMask& lhs, SetFileInfoMask rhs)
00530   { return (lhs = static_cast<SetFileInfoMask>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs))); }
00531 
00533 inline SetFileInfoMask& operator&=(SetFileInfoMask& lhs, SetFileInfoMask rhs)
00534   { return (lhs = static_cast<SetFileInfoMask>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs))); }
00535 
00537 inline SetFileInfoMask& operator^=(SetFileInfoMask& lhs, SetFileInfoMask rhs)
00538   { return (lhs = static_cast<SetFileInfoMask>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs))); }
00539 
00540 
00544 enum MonitorType
00545 {
00546   MONITOR_FILE,
00547   MONITOR_DIRECTORY
00548 };
00549 
00550 
00554 enum MonitorEventType
00555 {
00556   MONITOR_EVENT_CHANGED,
00557   MONITOR_EVENT_DELETED,
00558   MONITOR_EVENT_STARTEXECUTING,
00559   MONITOR_EVENT_STOPEXECUTING,
00560   MONITOR_EVENT_CREATED,
00561   MONITOR_EVENT_METADATA_CHANGED
00562 };
00563 
00564 
00568 enum MimeApplicationArgumentType
00569 {
00570   MIME_APPLICATION_ARGUMENT_TYPE_URIS,
00571   MIME_APPLICATION_ARGUMENT_TYPE_PATHS,
00572   MIME_APPLICATION_ARGUMENT_TYPE_URIS_FOR_NON_FILES
00573 };
00574 
00575 
00579 enum MimeActionType
00580 {
00581   MIME_ACTION_TYPE_NONE,
00582   MIME_ACTION_TYPE_APPLICATION,
00583   MIME_ACTION_TYPE_COMPONENT
00584 };
00585 
00586 
00598 enum TransferOptions
00599 {
00600   XFER_DEFAULT = 0,
00601   XFER_UNUSED_1 = 1 << 0,
00602   XFER_FOLLOW_LINKS = 1 << 1,
00603   XFER_UNUSED_2 = 1 << 2,
00604   XFER_RECURSIVE = 1 << 3,
00605   XFER_SAMEFS = 1 << 4,
00606   XFER_DELETE_ITEMS = 1 << 5,
00607   XFER_EMPTY_DIRECTORIES = 1 << 6,
00608   XFER_NEW_UNIQUE_DIRECTORY = 1 << 7,
00609   XFER_REMOVESOURCE = 1 << 8,
00610   XFER_USE_UNIQUE_NAMES = 1 << 9,
00611   XFER_LINK_ITEMS = 1 << 10,
00612   XFER_FOLLOW_LINKS_RECURSIVE = 1 << 11
00613 };
00614 
00616 inline TransferOptions operator|(TransferOptions lhs, TransferOptions rhs)
00617   { return static_cast<TransferOptions>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs)); }
00618 
00620 inline TransferOptions operator&(TransferOptions lhs, TransferOptions rhs)
00621   { return static_cast<TransferOptions>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs)); }
00622 
00624 inline TransferOptions operator^(TransferOptions lhs, TransferOptions rhs)
00625   { return static_cast<TransferOptions>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs)); }
00626 
00628 inline TransferOptions operator~(TransferOptions flags)
00629   { return static_cast<TransferOptions>(~static_cast<unsigned>(flags)); }
00630 
00632 inline TransferOptions& operator|=(TransferOptions& lhs, TransferOptions rhs)
00633   { return (lhs = static_cast<TransferOptions>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs))); }
00634 
00636 inline TransferOptions& operator&=(TransferOptions& lhs, TransferOptions rhs)
00637   { return (lhs = static_cast<TransferOptions>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs))); }
00638 
00640 inline TransferOptions& operator^=(TransferOptions& lhs, TransferOptions rhs)
00641   { return (lhs = static_cast<TransferOptions>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs))); }
00642 
00643 
00647 enum ProgressStatus
00648 {
00649   XFER_PROGRESS_STATUS_OK,
00650   XFER_PROGRESS_STATUS_VFSERROR,
00651   XFER_PROGRESS_STATUS_OVERWRITE,
00652   XFER_PROGRESS_STATUS_DUPLICATE
00653 };
00654 
00655 
00659 enum OverwriteMode
00660 {
00661   XFER_OVERWRITE_MODE_ABORT,
00662   XFER_OVERWRITE_MODE_QUERY,
00663   XFER_OVERWRITE_MODE_REPLACE,
00664   XFER_OVERWRITE_MODE_SKIP
00665 };
00666 
00667 
00671 enum OverwriteAction
00672 {
00673   XFER_OVERWRITE_ACTION_ABORT,
00674   XFER_OVERWRITE_ACTION_REPLACE,
00675   XFER_OVERWRITE_ACTION_REPLACE_ALL,
00676   XFER_OVERWRITE_ACTION_SKIP,
00677   XFER_OVERWRITE_ACTION_SKIP_ALL
00678 };
00679 
00680 
00684 enum ErrorMode
00685 {
00686   XFER_ERROR_MODE_ABORT,
00687   XFER_ERROR_MODE_QUERY
00688 };
00689 
00690 
00694 enum ErrorAction
00695 {
00696   XFER_ERROR_ACTION_ABORT,
00697   XFER_ERROR_ACTION_RETRY,
00698   XFER_ERROR_ACTION_SKIP
00699 };
00700 
00701 
00705 enum Phase
00706 {
00707   XFER_PHASE_INITIAL,
00708   XFER_CHECKING_DESTINATION,
00709   XFER_PHASE_COLLECTING,
00710   XFER_PHASE_READYTOGO,
00711   XFER_PHASE_OPENSOURCE,
00712   XFER_PHASE_OPENTARGET,
00713   XFER_PHASE_COPYING,
00714   XFER_PHASE_MOVING,
00715   XFER_PHASE_READSOURCE,
00716   XFER_PHASE_WRITETARGET,
00717   XFER_PHASE_CLOSESOURCE,
00718   XFER_PHASE_CLOSETARGET,
00719   XFER_PHASE_DELETESOURCE,
00720   XFER_PHASE_SETATTRIBUTES,
00721   XFER_PHASE_FILECOMPLETED,
00722   XFER_PHASE_CLEANUP,
00723   XFER_PHASE_COMPLETED,
00724   XFER_NUM_PHASES
00725 };
00726 
00727 
00731 enum VolumeType
00732 {
00733   VOLUME_TYPE_MOUNTPOINT,
00734   VOLUME_TYPE_VFS_MOUNT,
00735   VOLUME_TYPE_CONNECTED_SERVER
00736 };
00737 
00738 
00742 enum DeviceType
00743 {
00744   DEVICE_TYPE_UNKNOWN,
00745   DEVICE_TYPE_AUDIO_CD,
00746   DEVICE_TYPE_VIDEO_DVD,
00747   DEVICE_TYPE_HARDDRIVE,
00748   DEVICE_TYPE_CDROM,
00749   DEVICE_TYPE_FLOPPY,
00750   DEVICE_TYPE_ZIP,
00751   DEVICE_TYPE_JAZ,
00752   DEVICE_TYPE_NFS,
00753   DEVICE_TYPE_AUTOFS,
00754   DEVICE_TYPE_CAMERA,
00755   DEVICE_TYPE_MEMORY_STICK,
00756   DEVICE_TYPE_SMB,
00757   DEVICE_TYPE_APPLE,
00758   DEVICE_TYPE_MUSIC_PLAYER,
00759   DEVICE_TYPE_WINDOWS,
00760   DEVICE_TYPE_LOOPBACK,
00761   DEVICE_TYPE_NETWORK
00762 };
00763 
00764 
00768 enum DNSSDServiceStatus
00769 {
00770   DNS_SD_SERVICE_ADDED,
00771   DNS_SD_SERVICE_REMOVED
00772 };
00773 
00774 
00775 } // namespace Vfs
00776 } // namespace Gnome
00777 
00778 
00779 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00780 namespace Glib
00781 {
00782 
00783 template <>
00784 class Value<Gnome::Vfs::FileInfoOptions> : public Glib::Value_Flags<Gnome::Vfs::FileInfoOptions>
00785 {
00786 public:
00787   static GType value_type() G_GNUC_CONST;
00788 };
00789 
00790 template <>
00791 class Value<Gnome::Vfs::Result> : public Glib::Value_Enum<Gnome::Vfs::Result>
00792 {
00793 public:
00794   static GType value_type() G_GNUC_CONST;
00795 };
00796 
00797 template <>
00798 class Value<Gnome::Vfs::URIHideOptions> : public Glib::Value_Flags<Gnome::Vfs::URIHideOptions>
00799 {
00800 public:
00801   static GType value_type() G_GNUC_CONST;
00802 };
00803 
00804 template <>
00805 class Value<Gnome::Vfs::DirectoryVisitOptions> : public Glib::Value_Flags<Gnome::Vfs::DirectoryVisitOptions>
00806 {
00807 public:
00808   static GType value_type() G_GNUC_CONST;
00809 };
00810 
00811 template <>
00812 class Value<Gnome::Vfs::OpenMode> : public Glib::Value_Flags<Gnome::Vfs::OpenMode>
00813 {
00814 public:
00815   static GType value_type() G_GNUC_CONST;
00816 };
00817 
00818 template <>
00819 class Value<Gnome::Vfs::SeekPosition> : public Glib::Value_Enum<Gnome::Vfs::SeekPosition>
00820 {
00821 public:
00822   static GType value_type() G_GNUC_CONST;
00823 };
00824 
00825 template <>
00826 class Value<Gnome::Vfs::FileFlags> : public Glib::Value_Flags<Gnome::Vfs::FileFlags>
00827 {
00828 public:
00829   static GType value_type() G_GNUC_CONST;
00830 };
00831 
00832 template <>
00833 class Value<Gnome::Vfs::FileType> : public Glib::Value_Enum<Gnome::Vfs::FileType>
00834 {
00835 public:
00836   static GType value_type() G_GNUC_CONST;
00837 };
00838 
00839 template <>
00840 class Value<Gnome::Vfs::FilePermissions> : public Glib::Value_Flags<Gnome::Vfs::FilePermissions>
00841 {
00842 public:
00843   static GType value_type() G_GNUC_CONST;
00844 };
00845 
00846 template <>
00847 class Value<Gnome::Vfs::SetFileInfoMask> : public Glib::Value_Flags<Gnome::Vfs::SetFileInfoMask>
00848 {
00849 public:
00850   static GType value_type() G_GNUC_CONST;
00851 };
00852 
00853 template <>
00854 class Value<Gnome::Vfs::MonitorType> : public Glib::Value_Enum<Gnome::Vfs::MonitorType>
00855 {
00856 public:
00857   static GType value_type() G_GNUC_CONST;
00858 };
00859 
00860 template <>
00861 class Value<Gnome::Vfs::MonitorEventType> : public Glib::Value_Enum<Gnome::Vfs::MonitorEventType>
00862 {
00863 public:
00864   static GType value_type() G_GNUC_CONST;
00865 };
00866 
00867 template <>
00868 class Value<Gnome::Vfs::MimeApplicationArgumentType> : public Glib::Value_Enum<Gnome::Vfs::MimeApplicationArgumentType>
00869 {
00870 public:
00871   static GType value_type() G_GNUC_CONST;
00872 };
00873 
00874 template <>
00875 class Value<Gnome::Vfs::MimeActionType> : public Glib::Value_Enum<Gnome::Vfs::MimeActionType>
00876 {
00877 public:
00878   static GType value_type() G_GNUC_CONST;
00879 };
00880 
00881 template <>
00882 class Value<Gnome::Vfs::TransferOptions> : public Glib::Value_Flags<Gnome::Vfs::TransferOptions>
00883 {
00884 public:
00885   static GType value_type() G_GNUC_CONST;
00886 };
00887 
00888 template <>
00889 class Value<Gnome::Vfs::ProgressStatus> : public Glib::Value_Enum<Gnome::Vfs::ProgressStatus>
00890 {
00891 public:
00892   static GType value_type() G_GNUC_CONST;
00893 };
00894 
00895 template <>
00896 class Value<Gnome::Vfs::OverwriteMode> : public Glib::Value_Enum<Gnome::Vfs::OverwriteMode>
00897 {
00898 public:
00899   static GType value_type() G_GNUC_CONST;
00900 };
00901 
00902 template <>
00903 class Value<Gnome::Vfs::OverwriteAction> : public Glib::Value_Enum<Gnome::Vfs::OverwriteAction>
00904 {
00905 public:
00906   static GType value_type() G_GNUC_CONST;
00907 };
00908 
00909 template <>
00910 class Value<Gnome::Vfs::ErrorMode> : public Glib::Value_Enum<Gnome::Vfs::ErrorMode>
00911 {
00912 public:
00913   static GType value_type() G_GNUC_CONST;
00914 };
00915 
00916 template <>
00917 class Value<Gnome::Vfs::ErrorAction> : public Glib::Value_Enum<Gnome::Vfs::ErrorAction>
00918 {
00919 public:
00920   static GType value_type() G_GNUC_CONST;
00921 };
00922 
00923 template <>
00924 class Value<Gnome::Vfs::Phase> : public Glib::Value_Enum<Gnome::Vfs::Phase>
00925 {
00926 public:
00927   static GType value_type() G_GNUC_CONST;
00928 };
00929 
00930 template <>
00931 class Value<Gnome::Vfs::VolumeType> : public Glib::Value_Enum<Gnome::Vfs::VolumeType>
00932 {
00933 public:
00934   static GType value_type() G_GNUC_CONST;
00935 };
00936 
00937 template <>
00938 class Value<Gnome::Vfs::DeviceType> : public Glib::Value_Enum<Gnome::Vfs::DeviceType>
00939 {
00940 public:
00941   static GType value_type() G_GNUC_CONST;
00942 };
00943 
00944 } // namespace Glib
00945 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00946 
00947 
00948 #endif /* _LIBGNOMEVFSMM_ENUMS_H */
00949 

Generated on Fri Jan 9 01:51:48 2009 for libgnomevfsmm by  doxygen 1.4.6