1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23
24#ifndef __com_sun_star_setup_ProductRegistration_idl__
25#define __com_sun_star_setup_ProductRegistration_idl__
26
27#ifndef __com_sun_star_task_JobExecutor_idl__
28#include <com/sun/star/task/JobExecutor.idl>
29#endif
30
31#ifndef __com_sun_star_task_XJob_idl__
32#include <com/sun/star/task/XJob.idl>
33#endif
34
35module com {  module sun {  module star {  module setup {
36
37/** provides a mechanism for registering the product.
38
39	<p>Two main functionalities are covered by this service:
40	<ul><il><em>Triggering Online Registration</em><br/>
41			If, by any user interface of your choice, the user tells she wants to register
42			their product copy, ProductRegistration is the service of your choice.
43		</il><br/>
44		<il><em>Executing Registration Requests</em><br/>
45			ProductRegistration allows to remind your users to register, using a dialog with various
46			choices.
47		</il>
48	</ul></p>
49
50    @since OOo 1.1.2
51*/
52published service ProductRegistration
53{
54	/** allows to trigger certain events.
55
56		<p>The string argument of <method scope="com::sun::star::task">XJobExecutor::trigger</method> is
57			used to determine the type of the event. Currently supported events are:<br/>
58			<ul><li><b>RegistrationRequired</b><br/>
59					Determines that the registration is required to be executed.<br/>
60					This is usually triggered by some user interaction, for instance upon choosing a menu item
61					called <em>Registration</em>.</p>
62				</li>
63			</ul>
64		</p>
65	*/
66	service com::sun::star::task::JobExecutor;
67
68	/** allows the registration request to be scheduled automatically.
69
70		<p>There are processes which allow to schedule events and jobs, for instance there
71		can be configuration settings scheduling which operations are to be executed upon an program
72		startup. Such processes usually require the jobs to be executed to support the
73		<type scope="com::sun::star::task">XJob</type> interface.</p>
74
75		<p>That's why this service supports the <type scope="com::sun::star::task">XJob</type>, too.<br/>
76		Calling the <method scope="com::sun::star::task">XJob::execute</method> method results in displaying a
77		dialog which asks the user to register. This is done once per session, means you need to restart the
78		process which called this.</p>
79
80		<p>At the moment, there is no specification about how to use the arguments given in the
81		<method scope="com::sun::star::task">XJob::execute</method> method, but this may change in future versions of the service
82		descriptions, so to keep your implementation compatible, you should not use these arguments.</p>
83	*/
84	interface com::sun::star::task::XJob;
85};
86
87}; }; }; };
88
89#endif
90