~zulcss/ubuntu/lucid/likewise-open/likewise-open-sru

« back to all changes in this revision

Viewing changes to domainjoin/domainjoin-gui/carbon/DomainJoin/CredentialsDialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Rick Clark
  • Date: 2008-08-27 08:56:20 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080827085620-5q0f58b9qtog9myq
Tags: 4.1.0.2956-0ubuntu1
* missing-likewise-logo.diff: removed
* fixed copyright notice
* updated Standards-Version to 3.8.0
* removed path from command in prerm
* removed stop in S runlevel

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 -*- */
 
4
 
 
5
/*
 
6
 * Copyright (C) Centeris Corporation 2004-2007
 
7
 * Copyright (C) Likewise Software    2007-2008
 
8
 * All rights reserved.
 
9
 * 
 
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.
 
14
 *
 
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.
 
19
 *
 
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/>.
 
22
 */
 
23
 
 
24
/*
 
25
 *  CredentialsDialog.h
 
26
 *  DomainJoin
 
27
 *
 
28
 *  Created by Sriram Nambakam on 8/13/07.
 
29
 *  Copyright 2007 Centeris Corporation. All rights reserved.
 
30
 *
 
31
 */
 
32
#ifndef __CREDENTIALSDIALOG_H__
 
33
#define __CREDENTIALSDIALOG_H__
 
34
 
 
35
#include "TSheet.h"
 
36
 
 
37
#include <Carbon/Carbon.h>
 
38
#include <string>
 
39
 
 
40
class CredentialsDialog : public TSheet
 
41
{
 
42
    public:
 
43
             CredentialsDialog(int inAppSignature, TWindow& parentWindow);
 
44
                 virtual ~CredentialsDialog() {}
 
45
        
 
46
        protected:
 
47
             CredentialsDialog(const CredentialsDialog& other);
 
48
                 CredentialsDialog& operator=(const CredentialsDialog& other);
 
49
                 
 
50
        public:
 
51
                                 
 
52
             void SetUsername(const std::string& userName);
 
53
                 void SetPassword(const std::string& password);
 
54
                 
 
55
                 std::string GetUsername();
 
56
                 std::string GetPassword();
 
57
                 
 
58
        protected:
 
59
        
 
60
             virtual Boolean HandleCommand(const HICommandExtended& inCommand);
 
61
                
 
62
        protected:
 
63
        
 
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;
 
68
                
 
69
                static const int CANCEL_CMD_ID;
 
70
                static const int OK_CMD_ID;
 
71
};
 
72
 
 
73
#endif /* ___CREDENTIALSDIALOG_H__ */
 
74
 
 
75