/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* * Storage interface for the Evolution shell. * * Authors: * Ettore Perazzoli * * Copyright (C) 2000, 2001 Ximian, Inc. */ #include module GNOME { module Evolution { interface Storage; interface StorageListener; interface Storage : Bonobo::Unknown { exception AlreadyListening {}; exception NotFound {}; enum Result { OK, UNSUPPORTED_OPERATION, UNSUPPORTED_TYPE, INVALID_URI, ALREADY_EXISTS, DOES_NOT_EXIST, PERMISSION_DENIED, NO_SPACE, NOT_EMPTY, NOT_ONLINE, GENERIC_ERROR }; struct FolderResult { Result result; string path; }; /* The name of the storage. */ readonly attribute string name; /* Whether the storage has folders from other user's. */ readonly attribute boolean hasSharedFolders; /* Get information for a folder. NOTE: evolutionUri in the returned Folder is going to be an empty string if you use this function. */ Folder getFolderAtPath (in string path) raises (NotFound); /* Flat list of the folders in the storage. */ readonly attribute FolderList folderList; /* The folder property items (for right-click menu etc.). */ struct FolderPropertyItem { string label; string tooltip; Icon icon; // Currently unused }; typedef sequence FolderPropertyItemList; readonly attribute FolderPropertyItemList folderPropertyItems; /* Folder Operations. */ void asyncCreateFolder (in string path, in string type, in string description, in string parent_physical_uri, in Bonobo::Listener listener); void asyncRemoveFolder (in string path, in string physical_uri, in Bonobo::Listener listener); void asyncXferFolder (in string source_path, in string destination_path, in boolean remove_source, in Bonobo::Listener listener); /* Open remote nodes. */ void asyncOpenFolder (in string path); /* Set unread count. */ void updateFolder (in string path, in long unread_count); /* Shared folders. */ void asyncDiscoverSharedFolder (in string user, in string folder_name, in Bonobo::Listener listener); void cancelDiscoverSharedFolder (in string user, in string folder_name); void asyncRemoveSharedFolder (in string path, in Bonobo::Listener listener); /* Listener handling. */ void addListener (in StorageListener listener) raises (AlreadyListening); void removeListener (in StorageListener listener) raises (NotFound); /* (This should probably be in a separate interface, but creating a new interface in Bonobo is so painful that I'll just keep it here for now. */ void showFolderProperties (in string path, in short itemNumber, in long parentWindowId); }; interface StorageListener { exception Exists {}; exception NotFound {}; void notifyDestroyed (); /* FIXME exceptions don't make much sense here... */ void notifyFolderCreated (in string path, in Folder folder) raises (Exists); void notifyFolderUpdated (in string path, in long unread_count) raises (NotFound); void notifyFolderRemoved (in string path) raises (NotFound); void notifyHasSubfolders (in string path, in string message) raises (NotFound); }; interface StorageRegistry : Bonobo::Unknown { exception Exists {}; exception NotFound {}; exception AlreadyListening {}; typedef sequence StorageList; enum MessageType { STORAGE_CREATED, STORAGE_DESTROYED }; struct NotifyResult { MessageType type; string name; }; StorageListener addStorage (in Storage storage, in string name) raises (Exists); StorageList getStorageList (); Storage getStorageByName (in string name) raises (NotFound); void removeStorageByName (in string name) raises (NotFound); void addListener (in Bonobo::Listener listener) raises (AlreadyListening); void removeListener (in Bonobo::Listener listener) raises (NotFound); Folder getFolderByUri (in string uri) raises (NotFound); }; }; }; /option> FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* Sync to new bsd.autotools.mkade2010-12-041-1/+1
* - update to 1.4.1dinoex2010-03-281-1/+1
* - update to jpeg-8dinoex2010-02-051-0/+1
* - Fix build on slow machinespav2009-12-041-0/+1
* - Fix runtime issues when using CUSTOM prefixkmoore2009-11-121-0/+9
* - Switch SourceForge ports to the new File Release System: categories startin...amdmi32009-08-221-1/+1
* Upgrade to version 2.10.olgeni2009-07-261-3/+2
* - Update X.org ports to 7.4+ (few ports are more recent than the katamari).flz2009-01-241-1/+1
* Bump portrevision due to upgrade of devel/gettext.edwin2008-06-061-0/+1
* Upgrade to version 2.8.olgeni2008-05-241-2/+1
* - Fix build after xorg cleanupmiwi2008-04-211-2/+2
* - Remove unneeded dependency from gtk12/gtk20 [1]miwi2008-04-201-3/+3
* Add missing files to pkg-plist.olgeni2008-04-071-1/+2
* - Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORGmiwi2008-03-251-1/+0
* Upgrade to version 2.7.1.olgeni2008-01-131-1/+1
* Add missing libglade2 to USE_GNOME.olgeni2007-12-151-1/+1
* Upgrade to version 2.7.olgeni2007-12-121-1/+1
* Upgrade to version 2.6.1.olgeni2007-07-011-1/+1
* Upgrade to version 2.6.olgeni2007-05-291-2/+1
* - Welcome X.org 7.2 \o/.flz2007-05-201-0/+1
* Fix PORTNAME, which did not match origin.olgeni2007-03-031-1/+1
* Upgrade to version 2.5.olgeni2006-08-071-6/+6
* Do not set CHARSET to iso-8859-1, it is no longer needed.olgeni2006-06-201-1/+1
* Fix display issue in "Show extra details" mode.olgeni2006-01-091-1/+2
* Upgrade to version 2.4.1.olgeni2006-01-061-2/+1
* Mass-conversion to the USE_AUTOTOOLS New World Order. The code presentade2005-11-151-1/+1
* Bump PORTREVISION to chase the glib20 shared library update.marcus2005-11-051-0/+1
* Upgrade to version 2.3.olgeni2005-08-291-12/+3
* Bump PORTREVISION to chase the glib20 shared lib version change.marcus2005-03-121-1/+1
* Unbreak package build (remove debug executable.)olgeni2005-02-191-0/+1
* Upgrade to version 2.2.0.olgeni2005-01-291-1/+1
* Upgrade to version 2.1.5.olgeni2005-01-231-2/+1
* Bump PORTREVISIONS for all ports that depend on atk or pango to ease in themarcus2004-11-081-0/+1
* Upgrade to version 2.1.4.olgeni2004-10-311-1/+3
* Upgrade to version 2.1.3.olgeni2004-08-281-2/+2
* Upgrade to version 2.1.2, display pkg-message in install target.olgeni2004-05-01