DEFINITION MODULE WPROOTF;

(***************************************************************************
  OS/2 2.1 Workplace class interface for WPRootFolder

  Copyright (c) 1994 by Juergen Neuhoff
****************************************************************************)

(*$XL+       Modula-2 language extensions: '_' allowed for symbol names *)
(*$CDECL+    C-style procedures                                         *)
(*$A         default alignment for record fields                        *)

IMPORT SOM;
IMPORT WPFOLDER;

TYPE PSOMClass              = SOM.PSOMClass;
TYPE INTEGER4               = SOM.INTEGER4;
TYPE somMToken              = SOM.somMToken;
TYPE somDToken              = SOM.somDToken;
TYPE somMethodProc          = SOM.somMethodProc;
TYPE PWPRootFolder          = POINTER TO WPRootFolder;
TYPE PM_WPRootFolder        = POINTER TO M_WPRootFolder;

(************************************************************************
  Additional TYPE- and CONST-declarations supporting WPRootFolder
*************************************************************************)


(*************************************************************************
  SOM class API for WPRootFolder, including type-bound procedures
**************************************************************************)

CONST
  WPRootFolder_MajorVersion     = 1;
  WPRootFolder_MinorVersion     = 2;

TYPE
  WPRootFolderClassDataStructure     = RECORD
    classObject                        : PSOMClass;
    wpSetViewTitle                     : somMToken;
                                       END;

VAR
  WPRootFolderClassData : WPRootFolderClassDataStructure;

TYPE
  (*$SOM+ *)
  WPRootFolder = RECORD( WPFOLDER.WPFolder ) END;
  (*$SOM- *)


PROCEDURE WPRootFolderNewClass
(
  majorVersion  : INTEGER4;
  minorVersion  : INTEGER4
)               : PSOMClass;


(*************************************************************************
  SOM class API for M_WPRootFolder, including type-bound procedures
**************************************************************************)

CONST
  M_WPRootFolder_MajorVersion   = 1;
  M_WPRootFolder_MinorVersion   = 2;

TYPE
  M_WPRootFolderClassDataStructure   = RECORD
    classObject                        : PSOMClass;
                                       END;

VAR
  M_WPRootFolderClassData : M_WPRootFolderClassDataStructure;

TYPE
  (*$SOM+ *)
  M_WPRootFolder = RECORD( WPFOLDER.M_WPFolder ) END;
  (*$SOM- *)


PROCEDURE M_WPRootFolderNewClass
(
  majorVersion : INTEGER4;
  minorVersion : INTEGER4
)              : PSOMClass;


END WPROOTF.
