at-spi-idl: /home/liyuan/src/at-spi/idl/Accessibility_Selector.idl Source File

# Accessibility_Selector.idl

Go to the documentation of this file.

    00001 /*
    00002  * AT-SPI - Assistive Technology Service Provider Interface
    00003  * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
    00004  *
    00005  * Copyright 2001 Sun Microsystems Inc.
    00006  *
    00007  * This library is free software; you can redistribute it and/or
    00008  * modify it under the terms of the GNU Library General Public
    00009  * License as published by the Free Software Foundation; either
    00010  * version 2 of the License, or (at your option) any later version.
    00011  *
    00012  * This library is distributed in the hope that it will be useful,
    00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00015  * Library General Public License for more details.
    00016  *
    00017  * You should have received a copy of the GNU Library General Public
    00018  * License along with this library; if not, write to the
    00019  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    00020  * Boston, MA 02111-1307, USA.
    00021  */
    00022
    00023 #include <Bonobo_Unknown.idl>
    00024
    00025 #ifndef _ACCESSIBILITY_SELECTOR_IDL_
    00026 #define _ACCESSIBILITY_SELECTOR_IDL_
    00027
    00028 module Accessibility {
    00029
    00031     struct Command {
    00032           string name;
    00033           long   id;
    00034      };
    00035
    00037     typedef sequence<Command> CommandList;
    00038
    00046     interface CommandListener {
    00054         void notifyCommands (in CommandList commands);
    00055     };
    00056
    00068   interface Selector : Bonobo::Unknown {
    00069
    00074       enum CommandResult {
    00075           COMMAND_RESULT_INVALID,
    00077           COMMAND_RESULT_SUCCESS,
    00078           COMMAND_RESULT_FAILED,
    00081           COMMAND_RESULT_OBSOLETE,
    00088           COMMAND_RESULT_LAST_DEFINED
    00090       };
    00091
    00093       readonly attribute boolean supportsReplace;
    00094
    00100       CommandList getCommands ();
    00101
    00106       boolean replaceCommands (in CommandList commands);
    00107
    00119       boolean refreshCommands ();
    00120
    00128       CommandResult activateCommand (in Command cmd);
    00129
    00135       void registerChangeListener (in CommandListener listener);
    00136
    00143       void deregisterChangeListener (in CommandListener listener);
    00144
    00151         void unImplemented ();
    00152         void unImplemented2 ();
    00153         void unImplemented3 ();
    00154         void unImplemented4 ();
    00156     };
    00157
    00158 };
    00159
    00160 #endif