DEFINITION MODULE DKIM;

        (****************************************************************)
        (*                                                              *)
        (*                      PM Setup for Weasel                     *)
        (*                   DKIM page of the notebook                  *)
        (*                                                              *)
        (*        Started:        8 May 2023                            *)
        (*        Last edited:    11 May 2024                           *)
        (*        Status:         OK                                    *)
        (*                                                              *)
        (****************************************************************)


IMPORT OS2, CommonSettings, Languages, Names;


TYPE GlobalVarPtr;          (* is private *)

PROCEDURE CreatePage (notebook: OS2.HWND;  domainname: Names.DomainName;
                                after: CARDINAL;
                                VAR (*OUT*) PageID: CARDINAL);

    (* Creates DKIM page and adds it to the notebook after the page *)
    (* whose ID is "after".                                         *)

PROCEDURE SaveGlobals(): GlobalVarPtr;

    (* Saves a copy of some critical variables, returns a pointer   *)
    (* to the copy.                                                 *)

PROCEDURE RestoreGlobals (VAR (*INOUT*) p: GlobalVarPtr);

    (* Restores the data saved by SaveGlobals.  *)

PROCEDURE SetLanguage (lang: Languages.LangHandle);

    (* Relabels this page in the new language. *)

PROCEDURE DefaultStyle (default: BOOLEAN);

    (* Switches between two display formats.  Set default to TRUE if    *)
    (* this page is a page of default parameters rather than the        *)
    (* DKIM parameters for a specific domain.                           *)

PROCEDURE SetFont (VAR (*IN*) name: CommonSettings.FontName);

    (* Sets the font of the text on this page. *)

PROCEDURE StoreData;

    (* Stores the values on DKIM page back into the INI file. *)

PROCEDURE Close (notebook, hwnd: OS2.HWND);

    (* Shuts down this window and removes it from the notebook. *)

END DKIM.

