Safir SDK Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Backdoor.h
Go to the documentation of this file.
1 /******************************************************************************
2 *
3 * Copyright Saab AB, 2007-2013 (http://safir.sourceforge.net)
4 *
5 * Created by: Lars Hagström / stlrha
6 *
7 *******************************************************************************
8 *
9 * This file is part of Safir SDK Core.
10 *
11 * Safir SDK Core is free software: you can redistribute it and/or modify
12 * it under the terms of version 3 of the GNU General Public License as
13 * published by the Free Software Foundation.
14 *
15 * Safir SDK Core is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with Safir SDK Core. If not, see <http://www.gnu.org/licenses/>.
22 *
23 ******************************************************************************/
24 #ifndef __SWRE_BACKDOOR_H__
25 #define __SWRE_BACKDOOR_H__
26 
27 #include <string>
28 #include <vector>
29 
30 namespace Safir
31 {
32 namespace Application
33 {
41  class Backdoor
42  {
43  public:
47  virtual ~Backdoor() {}
48 
55  virtual void HandleCommand(const std::vector<std::wstring>& cmdTokens) = 0;
56 
63  virtual std::wstring GetHelpText() = 0;
64  };
65 
66 }
67 }
68 
69 #endif
Interface for handling PI commands.
Definition: Backdoor.h:41
virtual ~Backdoor()
Destructor.
Definition: Backdoor.h:47
virtual void HandleCommand(const std::vector< std::wstring > &cmdTokens)=0
Called when a &#39;Program Info&#39; command aimed for this handler is received.
virtual std::wstring GetHelpText()=0
Called when a &#39;help&#39; command aimed for this handler is received.