Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 0e8fb1d2ff
Fetching contributors…

Cannot retrieve contributors at this time

file 57 lines (44 sloc) 0.987 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
/***
* Brian Hession, Erik Wenkel, James Miller -- April 14, 2012
*
* Credentials class
*
*/

#include <gtkmm/frame.h>
#include <gtkmm/table.h>
#include <gtkmm/box.h>
#include <gtkmm/label.h>
#include <gtkmm/entry.h>
#include <gtkmm/button.h>
#include <glibmm/ustring.h>

#include "error.h"


class Credentials : public Gtk::Frame {

public:
Credentials();
virtual ~Credentials();

// Credentials struct
struct Cred {
Glib::ustring user;
Glib::ustring pass;
};

void savecredentials();
Cred getcredentials();
void setfields( Gtk::Window* w, Error* e );
void set_text( Cred c );

protected:
typedef Gtk::Frame super;

// Signal handling
void on_relog();
void error_message();

// Formatting
Gtk::Table cred_table;
Gtk::HBox m_HBox;
Gtk::VBox m_VBox;

// Widgets
Gtk::Label user_label, pass_label;
Gtk::Entry user_entry, pass_entry;

// Error handling
Gtk::Window* parent;
Error* error;

char cred_file[256];
};
Something went wrong with that request. Please try again.