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 .
22 #include <com/sun/star/beans/NamedValue.hpp>
23 #include <com/sun/star/frame/DispatchResultEvent.hpp>
30 @short represent a result of a finished job execution
31 @descr Such result instance transport all necessary
32 data from the code place where the job was finished
33 to the outside code, where e.g. listener must be notified.
43 These enum values are used to build a flag mask of possible set
44 parts of an analyzed pure job execution result.
45 An user of this class can decide, if a member of us can be valid
46 or not. So it can indicate, if a job used the special part inside
47 its returned result protocol.
48 To be usable as flags - it must be values of set {0,1,2,4,8,16 ...}!
63 an user of us must know, which (possible) parts of
64 a "pure result" was really set by an executed job.
65 Means which other members of this class are valid.
66 This mask can be used to find it out.
71 a job can have persistent data
72 They are part of the pure result and will be used to
73 write it to the configuration. But that's part of any
74 user of us. We provide this information here only.
76 std::vector
< css::beans::NamedValue
> m_lArguments
;
79 represent the part "DispatchResult"
80 It's a fulfilled event type, which was given
81 back by the executed job. Any user of us can send
82 it to its registered result listener directly.
84 css::frame::DispatchResultEvent m_aDispatchResult
;
90 JobResult( const css::uno::Any
& aResult
);
91 JobResult( const JobResult
& rCopy
);
94 JobResult
& operator=( const JobResult
& rCopy
);
96 bool existPart ( sal_uInt32 eParts
) const;
97 std::vector
< css::beans::NamedValue
> getArguments ( ) const;
98 css::frame::DispatchResultEvent
getDispatchResult( ) const;
101 } // namespace framework
103 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */