* Evolution-Storage.idl: Add "highligted" field to Folder. Add update_folder method to StorageListener to change display_name and highlight status. * e-folder.c: Add "highlighted" to EFolder to match the Evolution::Folder type. (e_folder_get_highlighted, e_folder_set_highlighted): Added * evolution-storage-listener.c (impl_Evolution_StorageListener_update_folder, etc): * e-storage.c (e_storage_updated_folder, etc): * e-corba-storage.c (impl_StorageListener_update_folder, etc): Implement update_folder. * e-storage-set.c (storage_updated_folder_cb, etc): Re-emit updated_folder signals received from EStorage. * e-storage-set-view.c (various): Add another model column to the ETable and set it up as a bold_column based on e_folder_get_highligted. (updated_folder_cb, etc): Listen to EStorageSet update_folder signal and emit ETree node_changed signals. * evolution-storage.c (evolution_storage_update_folder): Client function to update a folder's display_name and highlighted status. * Evolution-LocalStorage.idl: * evolution-local-storage.c: * e-local-storage.c: Change set_display_name to update_folder to match Evolution::StorageListener svn path=/trunk/; revision=6328
68 lines
1.4 KiB
Plaintext
68 lines
1.4 KiB
Plaintext
/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
|
|
/*
|
|
* Storage interface for the Evolution shell.
|
|
*
|
|
* Authors:
|
|
* Ettore Perazzoli <ettore@helixcode.com>
|
|
*
|
|
* Copyright (C) 2000 Helix Code, Inc.
|
|
*/
|
|
|
|
#include <Bonobo.h>
|
|
|
|
module Evolution {
|
|
struct Folder {
|
|
string type;
|
|
string description;
|
|
string display_name;
|
|
string physical_uri;
|
|
boolean highlighted;
|
|
};
|
|
|
|
interface Storage;
|
|
interface StorageListener;
|
|
|
|
interface Storage : Bonobo::Unknown {
|
|
exception AlreadyListening {};
|
|
exception NotFound {};
|
|
|
|
attribute string name;
|
|
|
|
void add_listener (in StorageListener listener)
|
|
raises (AlreadyListening);
|
|
|
|
void remove_listener (in StorageListener listener)
|
|
raises (NotFound);
|
|
};
|
|
|
|
interface StorageListener {
|
|
exception Exists {};
|
|
exception NotFound {};
|
|
|
|
void destroyed ();
|
|
|
|
/* FIXME exceptions don't make much sense here... */
|
|
|
|
void new_folder (in string path, in Folder folder)
|
|
raises (Exists);
|
|
|
|
void update_folder (in string path, in string display_name,
|
|
in boolean highlighted)
|
|
raises (NotFound);
|
|
|
|
void removed_folder (in string path)
|
|
raises (NotFound);
|
|
};
|
|
|
|
interface StorageRegistry : Bonobo::Unknown {
|
|
exception Exists {};
|
|
exception NotFound {};
|
|
|
|
StorageListener register_storage (in Storage storage, in string name)
|
|
raises (Exists);
|
|
|
|
void unregister_storage (in string name)
|
|
raises (NotFound);
|
|
};
|
|
};
|