1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
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.
14 *
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).
20 *
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.
25 *
26 ************************************************************************/
27
28#ifndef __com_sun_star_setup_ProductRegistration_idl__
29#define __com_sun_star_setup_ProductRegistration_idl__
30
31#ifndef __com_sun_star_task_JobExecutor_idl__
32#include <com/sun/star/task/JobExecutor.idl>
33#endif
34
35#ifndef __com_sun_star_task_XJob_idl__
36#include <com/sun/star/task/XJob.idl>
37#endif
38
39module com {  module sun {  module star {  module setup {
40
41/** provides a mechanism for registering the product.
42
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.
47		</il><br/>
48		<il><em>Executing Registration Requests</em><br/>
49			ProductRegistration allows to remind your users to register, using a dialog with various
50			choices.
51		</il>
52	</ul></p>
53
54    @since OOo 1.1.2
55*/
56published service ProductRegistration
57{
58	/** allows to trigger certain events.
59
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>
66				</li>
67			</ul>
68		</p>
69	*/
70	service com::sun::star::task::JobExecutor;
71
72	/** allows the registration request to be scheduled automatically.
73
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>
78
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>
83
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>
87	*/
88	interface com::sun::star::task::XJob;
89};
90
91}; }; }; };
92
93#endif
94