2 The software in this package is distributed under the GNU General
3 Public License version 2 (with a special exception described below).
5 A copy of GNU General Public License (GPL) is included in this distribution,
6 in the file COPYING.GPL.
8 As a special exception, if other files instantiate templates or use macros
9 or inline functions from this file, or you compile this file and link it
10 with other works to produce a work based on this file, this file
11 does not by itself cause the resulting work to be covered
12 by the GNU General Public License.
14 However the source code for this file must still be made available
15 in accordance with section (3) of the GNU General Public License.
17 This exception does not invalidate any other reasons why a work based
18 on this file might be covered by the GNU General Public License.
20 #ifndef STATUS_NOTIFIER_COMMAND_H
21 #define STATUS_NOTIFIER_COMMAND_H
25 #include <boost/scoped_ptr.hpp>
29 //-----------------------------------------------------------------------------
30 // StatusNotifierCommand
31 //-----------------------------------------------------------------------------
34 * @brief This class provides methods to handle status-notifier-cmd
37 class StatusNotifierCommand
40 static const std::string StatusToken;
43 explicit StatusNotifierCommand( const std::string &status_notifier_cmd );
44 virtual ~StatusNotifierCommand();
47 const std::string &token,
48 const std::string &value
50 std::string get_token_value() const;
55 //-----------------------------------------------------------------------------
56 // StatusNotifierCommandItem
57 //-----------------------------------------------------------------------------
59 typedef boost::scoped_ptr<StatusNotifierCommand> StatusNotifierCommandItem;
61 //-----------------------------------------------------------------------------
63 const std::string StatusNotifierCommand::StatusToken("${status}");
65 //-----------------------------------------------------------------------------
67 StatusNotifierCommand::StatusNotifierCommand(
73 StatusNotifierCommand::~StatusNotifierCommand()
77 bool StatusNotifierCommand::set_token_value(
85 std::string StatusNotifierCommand::get_token_value() const
90 bool StatusNotifierCommand::execute() const
95 #endif // STATUS_NOTIFIER_COMMAND_H