nmt-password-fields.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
  2. /*
  3. * This program is free software; you can redistribute it and/or
  4. * modify it under the terms of the GNU General Public License as
  5. * published by the Free Software Foundation; either version 2 of the
  6. * License, or (at your option) any later version.
  7. *
  8. * This program is distributed in the hope that it will be useful, but
  9. * WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. * General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. *
  16. * Copyright 2013 Red Hat, Inc.
  17. */
  18. #ifndef NMT_PASSWORD_FIELDS_H
  19. #define NMT_PASSWORD_FIELDS_H
  20. #include "nmt-newt.h"
  21. G_BEGIN_DECLS
  22. #define NMT_TYPE_PASSWORD_FIELDS (nmt_password_fields_get_type ())
  23. #define NMT_PASSWORD_FIELDS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NMT_TYPE_PASSWORD_FIELDS, NmtPasswordFields))
  24. #define NMT_PASSWORD_FIELDS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NMT_TYPE_PASSWORD_FIELDS, NmtPasswordFieldsClass))
  25. #define NMT_IS_PASSWORD_FIELDS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NMT_TYPE_PASSWORD_FIELDS))
  26. #define NMT_IS_PASSWORD_FIELDS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NMT_TYPE_PASSWORD_FIELDS))
  27. #define NMT_PASSWORD_FIELDS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NMT_TYPE_PASSWORD_FIELDS, NmtPasswordFieldsClass))
  28. typedef struct {
  29. NmtNewtGrid parent;
  30. } NmtPasswordFields;
  31. typedef struct {
  32. NmtNewtGridClass parent;
  33. } NmtPasswordFieldsClass;
  34. GType nmt_password_fields_get_type (void);
  35. typedef enum {
  36. NMT_PASSWORD_FIELDS_ALWAYS_ASK = (1 << 0),
  37. NMT_PASSWORD_FIELDS_SHOW_PASSWORD = (1 << 1),
  38. } NmtPasswordFieldsExtras;
  39. NmtNewtWidget *nmt_password_fields_new (int width,
  40. NmtPasswordFieldsExtras extras);
  41. G_END_DECLS
  42. #endif /* NMT_PASSWORD_FIELDS_H */