Unity Scopes API
ActivationListenerBase.h
1 /*
2  * Copyright (C) 2013 Canonical Ltd
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License version 3 as
6  * published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored by: Pawel Stolowski <pawel.stolowski@canonical.com>
17  */
18 
19 #pragma once
20 
21 #include <unity/scopes/ListenerBase.h>
22 #include <unity/util/NonCopyable.h>
23 
24 namespace unity
25 {
26 
27 namespace scopes
28 {
29 class ActivationResponse;
30 
36 {
37 public:
39  NONCOPYABLE(ActivationListenerBase);
40  UNITY_DEFINES_PTRS(ActivationListenerBase);
41 
44 
51  virtual void activated(ActivationResponse const& response);
52 
62  virtual void finished(CompletionDetails const& details) override;
63 
64 protected:
68 };
69 
70 } // namespace scopes
71 
72 } // namespace unity
Base class to receive a response to a result activation request.
Definition: ActivationListenerBase.h:35
Top-level namespace for all things Unity-related.
Definition: Version.h:49
A container for details about the completion status of a query as well as any additional information ...
Definition: CompletionDetails.h:45
virtual void activated(ActivationResponse const &response)
Called once by the scopes run time with the activation response.
Definition: ActivationListenerBase.cpp:37
virtual void finished(CompletionDetails const &details) override
Called once by the scopes run time after the final result for a request was sent. ...
Definition: ActivationListenerBase.cpp:42
Abstract base class to be notified of request completion (such as a query or activation request)...
Definition: ListenerBase.h:43
Response to a result activation.
Definition: ActivationResponse.h:41