1
/* Editor Settings: expandtabs and use 4 spaces for indentation
2
* ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: *
3
* -*- mode: c, c-basic-offset: 4 -*- */
6
* Copyright (C) Centeris Corporation 2004-2007
7
* Copyright (C) Likewise Software 2007-2008
10
* This program is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 2 of the License, or
13
* (at your option) any later version.
15
* This program 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.
20
* You should have received a copy of the GNU General Public License
21
* along with this program. If not, see <http://www.gnu.org/licenses/>.
28
* Created by Sriram Nambakam on 8/13/07.
29
* Copyright 2007 Centeris Corporation. All rights reserved.
32
#ifndef __CREDENTIALSDIALOG_H__
33
#define __CREDENTIALSDIALOG_H__
37
#include <Carbon/Carbon.h>
40
class CredentialsDialog : public TSheet
43
CredentialsDialog(int inAppSignature, TWindow& parentWindow);
44
virtual ~CredentialsDialog() {}
47
CredentialsDialog(const CredentialsDialog& other);
48
CredentialsDialog& operator=(const CredentialsDialog& other);
52
void SetUsername(const std::string& userName);
53
void SetPassword(const std::string& password);
55
std::string GetUsername();
56
std::string GetPassword();
60
virtual Boolean HandleCommand(const HICommandExtended& inCommand);
64
static const int USERNAME_ID;
65
static const int PASSWORD_ID;
66
static const int CANCEL_BUTTON_ID;
67
static const int OK_BUTTON_ID;
69
static const int CANCEL_CMD_ID;
70
static const int OK_CMD_ID;
73
#endif /* ___CREDENTIALSDIALOG_H__ */