1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
28 #ifndef __com_sun_star_setup_ProductRegistration_idl__
29 #define __com_sun_star_setup_ProductRegistration_idl__
31 #ifndef __com_sun_star_task_JobExecutor_idl__
32 #include
<com
/sun
/star
/task
/JobExecutor.idl
>
35 #ifndef __com_sun_star_task_XJob_idl__
36 #include
<com
/sun
/star
/task
/XJob.idl
>
39 module com
{ module sun
{ module star
{ module setup
{
41 /** provides a mechanism for registering the product.
43 <p>Two main functionalities are covered by this service:
44 <ul><il><em>Triggering Online Registration</em><br/>
45 If, by any user interface of your choice, the user tells she wants to register
46 their product copy, ProductRegistration is the service of your choice.
48 <il><em>Executing Registration Requests</em><br/>
49 ProductRegistration allows to remind your users to register, using a dialog with various
56 published service ProductRegistration
58 /** allows to trigger certain events.
60 <p>The string argument of <method scope="com::sun::star::task">XJobExecutor::trigger</method> is
61 used to determine the type of the event. Currently supported events are:<br/>
62 <ul><li><b>RegistrationRequired</b><br/>
63 Determines that the registration is required to be executed.<br/>
64 This is usually triggered by some user interaction, for instance upon choosing a menu item
65 called <em>Registration</em>.</p>
70 service com
::sun
::star
::task
::JobExecutor
;
72 /** allows the registration request to be scheduled automatically.
74 <p>There are processes which allow to schedule events and jobs, for instance there
75 can be configuration settings scheduling which operations are to be executed upon an program
76 startup. Such processes usually require the jobs to be executed to support the
77 <type scope="com::sun::star::task">XJob</type> interface.</p>
79 <p>That's why this service supports the <type scope="com::sun::star::task">XJob</type>, too.<br/>
80 Calling the <method scope="com::sun::star::task">XJob::execute</method> method results in displaying a
81 dialog which asks the user to register. This is done once per session, means you need to restart the
82 process which called this.</p>
84 <p>At the moment, there is no specification about how to use the arguments given in the
85 <method scope="com::sun::star::task">XJob::execute</method> method, but this may change in future versions of the service
86 descriptions, so to keep your implementation compatible, you should not use these arguments.</p>
88 interface com
::sun
::star
::task
::XJob
;