2006-08-30 Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
[hildon] / hildon-widgets / hildon-get-password-dialog.h
index c5d7ee6..a9fa018 100644 (file)
@@ -1,14 +1,14 @@
 /*
  * This file is part of hildon-libs
  *
- * Copyright (C) 2005 Nokia Corporation.
+ * Copyright (C) 2005, 2006 Nokia Corporation.
  *
- * Contact: Luc Pionchon <luc.pionchon@nokia.com>
+ * Contact: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public License
- * as published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
+ * as published by the Free Software Foundation; version 2.1 of
+ * the License.
  *
  * This library is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
 #include <gtk/gtkdialog.h>
 
 G_BEGIN_DECLS
-#define HILDON_TYPE_GET_PASSWORD_DIALOG \
-  ( hildon_get_password_dialog_get_type() )
+
+#define HILDON_TYPE_GET_PASSWORD_DIALOG ( hildon_get_password_dialog_get_type() )
+
 #define HILDON_GET_PASSWORD_DIALOG(obj) \
   (GTK_CHECK_CAST (obj, HILDON_TYPE_GET_PASSWORD_DIALOG,\
    HildonGetPasswordDialog))
+
 #define HILDON_GET_PASSWORD_DIALOG_CLASS(klass) \
   (GTK_CHECK_CLASS_CAST ((klass), HILDON_TYPE_GET_PASSWORD_DIALOG, \
   HildonGetPasswordDialogClass))
+
 #define HILDON_IS_GET_PASSWORD_DIALOG(obj) \
   (GTK_CHECK_TYPE (obj, HILDON_TYPE_GET_PASSWORD_DIALOG))
+
 #define HILDON_IS_GET_PASSWORD_DIALOG_CLASS(klass) \
   (GTK_CHECK_CLASS_TYPE ((klass), HILDON_TYPE_GET_PASSWORD_DIALOG))
 
-#define HILDON_GET_PASSWORD_DIALOG_TITLE "ecdg_ti_get_old_password"
-#define HILDON_GET_PASSWORD_DIALOG_PASSWORD \
-         "ecdg_fi_get_old_pwd_enter_pwd"
-#define HILDON_GET_PASSWORD_DIALOG_OK "ecdg_bd_get_old_password_dialog_ok"
-#define HILDON_GET_PASSWORD_DIALOG_CANCEL \
-         "ecdg_bd_get_old_password_dialog_cancel"
-
-#define HILDON_GET_PASSWORD_VERIFY_DIALOG_TITLE \
-         "ecdg_ti_verify_password"
-#define HILDON_GET_PASSWORD_VERIFY_DIALOG_PASSWORD \
-         "ecdg_fi_verify_pwd_enter_pwd"
-#define HILDON_GET_PASSWORD_VERIFY_DIALOG_OK \
-         "ecdg_bd_verify_password_dialog_ok"
-#define HILDON_GET_PASSWORD_VERIFY_DIALOG_CANCEL \
-         "ecdg_bd_verify_password_dialog_cancel"
-#define HILDON_GET_PASSWORD_DIALOG_MAX_CHARS \
-         "ckdg_ib_maximum_characters_reached"
-
-typedef struct _HildonGetPasswordDialog HildonGetPasswordDialog;
+
+#define HILDON_GET_PASSWORD_DIALOG_TITLE           "ecdg_ti_get_old_password"
+#define HILDON_GET_PASSWORD_DIALOG_PASSWORD        "ecdg_fi_get_old_pwd_enter_pwd"
+#define HILDON_GET_PASSWORD_DIALOG_OK              "ecdg_bd_get_old_password_dialog_ok"
+#define HILDON_GET_PASSWORD_DIALOG_CANCEL          "ecdg_bd_get_old_password_dialog_cancel"
+
+#define HILDON_GET_PASSWORD_VERIFY_DIALOG_TITLE    "ecdg_ti_verify_password"
+#define HILDON_GET_PASSWORD_VERIFY_DIALOG_PASSWORD "ecdg_fi_verify_pwd_enter_pwd"
+#define HILDON_GET_PASSWORD_VERIFY_DIALOG_OK       "ecdg_bd_verify_password_dialog_ok"
+#define HILDON_GET_PASSWORD_VERIFY_DIALOG_CANCEL   "ecdg_bd_verify_password_dialog_cancel"
+
+#define HILDON_GET_PASSWORD_DIALOG_MAX_CHARS       "ckdg_ib_maximum_characters_reached"
+
+typedef struct _HildonGetPasswordDialog      HildonGetPasswordDialog;
 typedef struct _HildonGetPasswordDialogClass HildonGetPasswordDialogClass;
 
 struct _HildonGetPasswordDialog {
@@ -70,31 +69,31 @@ struct _HildonGetPasswordDialogClass {
     GtkDialogClass parent_class;
 };
 
-GType hildon_get_password_dialog_get_type(void);
+GType      hildon_get_password_dialog_get_type(void) G_GNUC_CONST;
 
-GtkWidget *hildon_get_password_dialog_new(GtkWindow * parent,
-                                          gboolean get_old_password_title);
+GtkWidget *hildon_get_password_dialog_new              (GtkWindow   *parent,
+                                                        gboolean     get_old);
 
-GtkWidget *hildon_get_password_dialog_new_with_default(GtkWindow *parent,
-                                                      gchar *password,
-                                                      gboolean get_old_password_title);
+GtkWidget *hildon_get_password_dialog_new_with_default (GtkWindow   *parent,
+                                                       const gchar *password,
+                                                       gboolean     get_old);
 
-void hildon_get_password_dialog_set_domain(HildonGetPasswordDialog *dialog, 
-                                          gchar *domain);
+void       hildon_get_password_dialog_set_domain       (HildonGetPasswordDialog *dialog, 
+                                                       const gchar             *domain);
 
-void hildon_get_password_dialog_set_title(HildonGetPasswordDialog *dialog,
-                                         gchar *new_title);
+void       hildon_get_password_dialog_set_caption      (HildonGetPasswordDialog *dialog,
+                                                       const gchar             *new_caption);
 
-void hildon_get_password_dialog_set_caption(HildonGetPasswordDialog *dialog,
-                                                 gchar *new_caption);
+void       hildon_get_password_dialog_set_max_characters(HildonGetPasswordDialog *dialog,
+                                                        gint                     max_characters);
 
+const gchar * hildon_get_password_dialog_get_password(HildonGetPasswordDialog * dialog);
 
-void hildon_get_password_dialog_set_max_characters(HildonGetPasswordDialog *dialog,
-                                                  gint max_characters);
 
-const gchar
-    *hildon_get_password_dialog_get_password(HildonGetPasswordDialog *
-                                             dialog);
+#ifndef HILDON_DISABLE_DEPRECATED
+void       hildon_get_password_dialog_set_title        (HildonGetPasswordDialog *dialog,
+                                                       const gchar             *new_title);
+#endif /* HILDON_DISABLE_DEPRECATED */
 
 G_END_DECLS
-#endif
+#endif /* __HILDON_GET_PASSWORD_DIALOG_H__ */