1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_FRAMEWORK_INC_JOBS_JOBRESULT_HXX
21 #define INCLUDED_FRAMEWORK_INC_JOBS_JOBRESULT_HXX
26 #include <com/sun/star/beans/NamedValue.hpp>
27 #include <com/sun/star/frame/DispatchResultEvent.hpp>
29 #include <rtl/ustring.hxx>
34 @short represent a result of a finished job execution
35 @descr Such result instance transport all neccessarry
36 data from the code place where the job was finished
37 to the outside code, where e.g. listener must be notified.
47 These enum values are used to build a flag mask of possible set
48 parts of an analyzed pure job execution result.
49 An user of this class can decide, if a member of us can be valid
50 or not. So it can indicate, if a job used the special part inside
51 his returned result protocol.
52 To be usable as flags - it must be values of set {0,1,2,4,8,16 ...}!
66 /** hold the original pure result, which was given back by an
68 We analyze it and use it to set all our other members.
70 css::uno::Any m_aPureResult
;
73 an user of us must know, which (possible) parts of
74 a "pure result" was really set by an executed job.
75 Means which other members of this class are valid.
76 This mask can be used to find it out.
81 a job can have persistent data
82 They are part of the pure result and will be used to
83 write it to the configuration. But that's part of any
84 user of us. We provide this information here only.
86 css::uno::Sequence
< css::beans::NamedValue
> m_lArguments
;
89 an executed job can force his deactivation
90 But we provide this information here only.
91 Doing so is part of any user of us.
96 represent the part "DispatchResult"
97 It's a full filled event type, which was given
98 back by the executed job. Any user of us can send
99 it to his registered result listener directly.
101 css::frame::DispatchResultEvent m_aDispatchResult
;
108 JobResult( const com::sun::star::uno::Any
& aResult
);
109 JobResult( const JobResult
& rCopy
);
110 virtual ~JobResult( );
112 void operator=( const JobResult
& rCopy
);
114 bool existPart ( sal_uInt32 eParts
) const;
115 css::uno::Sequence
< css::beans::NamedValue
> getArguments ( ) const;
116 css::frame::DispatchResultEvent
getDispatchResult( ) const;
119 } // namespace framework
121 #endif // INCLUDED_FRAMEWORK_INC_JOBS_JOBRESULT_HXX
123 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */