Files
wlan-cloud-lib-poco/Shell/include/Poco/Shell/LoginCommand.h
Aleksandar Fabijanic d712530c7d added Poco::Shell
2013-04-23 20:06:03 -05:00

83 lines
2.6 KiB
C++

//
// LoginCommand.h
//
// $Id: //poco/1.4/Shell/include/Poco/Shell/LoginCommand.h#1 $
//
// Library: Shell
// Package: Shell
// Module: LoginCommand
//
// Definition of the LoginCommand class.
//
// Copyright (c) 2009-2013, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a copy of the software and accompanying documentation covered by
// this license (the "Software") to use, reproduce, display, distribute,
// execute, and transmit the Software, and to prepare derivative works of the
// Software, and to permit third-parties to whom the Software is furnished to
// do so, all subject to the following:
//
// The copyright notices in the Software and this entire statement, including
// the above license grant, this restriction and the following disclaimer,
// must be included in all copies of the Software, in whole or in part, and
// all derivative works of the Software, unless such copies or derivative
// works are solely in the form of machine-executable object code generated by
// a source language processor.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
// SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
// FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
//
#ifndef Shell_LoginCommand_INCLUDED
#define Shell_LoginCommand_INCLUDED
#include "Poco/Shell/AbstractCommand.h"
namespace Poco {
namespace Shell {
class Shell_API LoginCommand: public AbstractCommand
/// LoginCommand implements the "login" command,
/// with the help of the Session object.
///
/// The login command takes two arguments, a user
/// name and a password, and passes them to the
/// login() member function of Session.
///
/// The help text of the login command can be
/// customized by providing the following bundle
/// properties:
/// - login.description: The description of the command.
/// - login.usage: The usage string.
{
public:
LoginCommand();
/// Creates the LoginCommand.
~LoginCommand();
/// Destroys the LoginCommand.
protected:
// AbstractCommand
virtual int executeImpl(Session& session, const std::vector<std::string>& args, std::ostream& ostr);
private:
};
} } // namespace Poco::Shell
#endif // Shell_LoginCommand_INCLUDED