LeechCraft  0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
entitytesthandleresult.h
Go to the documentation of this file.
1 /**********************************************************************
2  * LeechCraft - modular cross-platform feature rich internet client.
3  * Copyright (C) 2006-2014 Georg Rudoy
4  *
5  * Distributed under the Boost Software License, Version 1.0.
6  * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7  **********************************************************************/
8 
9 #ifndef INTERFACES_ENTITYTESTHANDLERESULT_H
10 #define INTERFACES_ENTITYTESTHANDLERESULT_H
11 
27 {
30  int HandlePriority_;
31 
34  enum Priority
35  {
36  PIdeal = 1000,
37  PHigh = 800,
38  PNormal = 600,
39  PLow = 200,
40  PNone = 0
41  };
42 
48  bool CancelOthers_;
49 
56  : HandlePriority_ ()
57  , CancelOthers_ (false)
58  {
59  }
60 
65  explicit EntityTestHandleResult (Priority prio)
66  : HandlePriority_ (prio)
67  , CancelOthers_ (false)
68  {
69  }
70 };
71 
72 #endif
EntityTestHandleResult::PIdeal
@ PIdeal
Definition: entitytesthandleresult.h:42
EntityTestHandleResult::PNone
@ PNone
Definition: entitytesthandleresult.h:46
EntityTestHandleResult::PLow
@ PLow
Definition: entitytesthandleresult.h:45
EntityTestHandleResult::Priority
Priority
The typical values for the priority.
Definition: entitytesthandleresult.h:40
EntityTestHandleResult::CancelOthers_
bool CancelOthers_
Whether other handlers should be canceled.
Definition: entitytesthandleresult.h:54
EntityTestHandleResult::PNormal
@ PNormal
Definition: entitytesthandleresult.h:44
EntityTestHandleResult::PHigh
@ PHigh
Definition: entitytesthandleresult.h:43
EntityTestHandleResult::HandlePriority_
int HandlePriority_
The priority with which an entity could be handled.
Definition: entitytesthandleresult.h:36
EntityTestHandleResult
The result of testing whether an entity could be handled by a plugin.
Definition: entitytesthandleresult.h:26
EntityTestHandleResult::EntityTestHandleResult
EntityTestHandleResult()
Default-constructs a test result.
Definition: entitytesthandleresult.h:61