Files
evolution/shell/importer/GNOME_Evolution_Importer.idl
Rodrigo Moya 460542ead1 added "foldertype" argument to GNOME::Evolution::Importer.
2003-04-02  Rodrigo Moya <rodrigo@ximian.com>

	* importer/GNOME_Evolution_Importer.idl:
	* importer/evolution-importer.[ch]: added "foldertype" argument to
	GNOME::Evolution::Importer.

	* importer/evolution-importer-client.[ch]
	(evolution_importer_client_load_file): added "folder_type" argument
	and use it in the call to GNOME_Evolution_Importer_loadFile.

	* e-shell-importer.c (start_import): added "folder_type" argument and
	use it in the call to evolution_importer_client_load_file.
	(folder_selected): pass in the "folder_type" argument to start_import,

svn path=/trunk/; revision=20643
2003-04-02 16:34:02 +00:00

98 lines
2.0 KiB
Plaintext

/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Interfaces for the importer framework.
*
* Authors:
* Iain Holmes <iain@ximian.com>
*
* Copyright (C) 2000 Ximian, Inc.
*/
#include <Bonobo.idl>
module GNOME {
module Evolution {
interface ImporterListener : Bonobo::Unknown {
enum ImporterResult {
OK,
UNSUPPORTED_OPERATION,
NOT_READY,
BUSY,
UNKNOWN_DATA,
BAD_DATA,
BAD_FILE
};
/**
* notifyResult:
* @result: The result of the import.
* @more_items: Are there any more items to be processed?
*
* Notifies the listener of the result and whether there are
* any more items to be imported.
*/
oneway void notifyResult (in ImporterResult result,
in boolean more_items);
};
interface Importer : Bonobo::Unknown {
/**
* processItem:
* @listener: The ImporterListener that will be notified of the
* progress.
*
* Processes the next item.
*
*/
oneway void processItem (in ImporterListener listener);
/**
* getError:
*
* Retrieve a detailed explaination of the error.
*
* Returns: A string.
*/
string getError ();
/**
* supportFormat:
* @filename: The filename of the file.
*
* Checks if the importer created by this factory can
* import the file specified.
*
* Returns: A boolean, TRUE if it can import the file,
* FALSE otherwise.
*/
boolean supportFormat (in string filename);
/**
* loadFile:
* @filename: The filename of the file.
* @folderpath: The full pathname to the folder.
* @foldertpe: The type of the folder to import to.
*
* Loads the file and prepares an Importer object that can
* process files of this type.
*
* Returns: An Importer object.
*/
boolean loadFile (in string filename,
in string folderpath,
in string foldertype);
};
interface IntelligentImporter : Bonobo::Unknown {
readonly attribute string importername;
readonly attribute string message;
boolean canImport ();
void importData ();
};
};
};