From c030b478a81ae6a3f4541ff95b547b0407717335 Mon Sep 17 00:00:00 2001 From: Mikhail Voitenko Date: Thu, 31 Oct 2002 10:08:41 +0000 Subject: #102191# password requests and interaction --- .../com/sun/star/task/DocumentPasswordRequest.idl | 95 +++++++++++++++++++++ offapi/com/sun/star/task/MasterPasswordRequest.idl | 90 ++++++++++++++++++++ offapi/com/sun/star/task/XInteractionPassword.idl | 98 ++++++++++++++++++++++ offapi/com/sun/star/task/makefile.mk | 7 +- 4 files changed, 288 insertions(+), 2 deletions(-) create mode 100644 offapi/com/sun/star/task/DocumentPasswordRequest.idl create mode 100644 offapi/com/sun/star/task/MasterPasswordRequest.idl create mode 100644 offapi/com/sun/star/task/XInteractionPassword.idl (limited to 'offapi') diff --git a/offapi/com/sun/star/task/DocumentPasswordRequest.idl b/offapi/com/sun/star/task/DocumentPasswordRequest.idl new file mode 100644 index 000000000000..d18cc67bf964 --- /dev/null +++ b/offapi/com/sun/star/task/DocumentPasswordRequest.idl @@ -0,0 +1,95 @@ +/************************************************************************* + * + * $RCSfile: DocumentPasswordRequest.idl,v $ + * + * $Revision: 1.1 $ + * + * last change: $Author: mav $ $Date: 2002-10-31 11:04:46 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (the "License"); You may not use this file + * except in compliance with the License. You may obtain a copy of the + * License at http://www.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef __com_sun_star_task_DocumentPasswordRequest_idl__ +#define __com_sun_star_task_DocumentPasswordRequest_idl__ + +#ifndef __com_sun_star_task_PasswordRequest_idl__ +#include +#endif + + +//============================================================================= + +module com { module sun { module star { module task { + +//============================================================================= +/** this request specifies the mode in wich the password should be asked + +

+ It is supported by InteractionHandler service, and can + be used to interact for a document password. Continuations for using with + the mentioned service are Abort and Approve. +

+*/ +exception DocumentPasswordRequest: PasswordRequest +{ + //------------------------------------------------------------------------- + /** the name of the document + */ + string Name; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/task/MasterPasswordRequest.idl b/offapi/com/sun/star/task/MasterPasswordRequest.idl new file mode 100644 index 000000000000..08c5d358b40b --- /dev/null +++ b/offapi/com/sun/star/task/MasterPasswordRequest.idl @@ -0,0 +1,90 @@ +/************************************************************************* + * + * $RCSfile: MasterPasswordRequest.idl,v $ + * + * $Revision: 1.1 $ + * + * last change: $Author: mav $ $Date: 2002-10-31 11:04:47 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (the "License"); You may not use this file + * except in compliance with the License. You may obtain a copy of the + * License at http://www.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef __com_sun_star_task_MasterPasswordRequest_idl__ +#define __com_sun_star_task_MasterPasswordRequest_idl__ + +#ifndef __com_sun_star_task_PasswordRequest_idl__ +#include +#endif + + +//============================================================================= + +module com { module sun { module star { module task { + +//============================================================================= +/** this request specifies the mode in wich the password should be asked + +

+ It is supported by InteractionHandler service, and can + be used to interact for a master password. Continuations for using with + the mentioned service are Abort and Approve. +

+*/ +exception MasterPasswordRequest: PasswordRequest +{ +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/task/XInteractionPassword.idl b/offapi/com/sun/star/task/XInteractionPassword.idl new file mode 100644 index 000000000000..5fc48ef19272 --- /dev/null +++ b/offapi/com/sun/star/task/XInteractionPassword.idl @@ -0,0 +1,98 @@ +/************************************************************************* + * + * $RCSfile: XInteractionPassword.idl,v $ + * + * $Revision: 1.1 $ + * + * last change: $Author: mav $ $Date: 2002-10-31 11:04:47 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (the "License"); You may not use this file + * except in compliance with the License. You may obtain a copy of the + * License at http://www.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef __com_sun_star_task_XInteractionPassword_idl__ +#define __com_sun_star_task_XInteractionPassword_idl__ + +#ifndef __com_sun_star_task_XInteractionContinuation_idl__ +#include +#endif + +//============================================================================= + +module com { module sun { module star { module task { + +//============================================================================= +/** A continuation to get a password from interaction helper. +*/ +interface XInteractionPassword : ::com::sun::star::task::XInteractionContinuation +{ + //------------------------------------------------------------------------- + /** Store result password to the continuation. + + @param aPasswd the result password. + + */ + void setPassword( [in] string aPasswd ); + + //------------------------------------------------------------------------- + /** Get result password from the continuation. + + @returns the stored password. + */ + string getPassword(); +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/task/makefile.mk b/offapi/com/sun/star/task/makefile.mk index 0cc128dae12e..c66a00519795 100644 --- a/offapi/com/sun/star/task/makefile.mk +++ b/offapi/com/sun/star/task/makefile.mk @@ -2,9 +2,9 @@ # # $RCSfile: makefile.mk,v $ # -# $Revision: 1.9 $ +# $Revision: 1.10 $ # -# last change: $Author: jl $ $Date: 2002-07-18 14:26:26 $ +# last change: $Author: mav $ $Date: 2002-10-31 11:04:50 $ # # The Contents of this file are made available subject to the terms of # either of the following licenses @@ -74,9 +74,11 @@ PACKAGE=com$/sun$/star$/task IDLFILES=\ ClassifiedInteractionRequest.idl\ + DocumentPasswordRequest.idl\ InteractionClassification.idl\ InteractionHandler.idl\ JobExecutor.idl\ + MasterPasswordRequest.idl\ NoMasterException.idl\ PasswordRequest.idl\ PasswordRequestMode.idl\ @@ -85,6 +87,7 @@ IDLFILES=\ XAsyncJob.idl\ XInteractionApprove.idl\ XInteractionDisapprove.idl\ + XInteractionPassword.idl\ XJob.idl\ XJobExecutor.idl\ XJobListener.idl\ -- cgit v1.2.3