DEFINITION MODULE WPDRIVES;

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

  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 PWPDrives              = POINTER TO WPDrives;
TYPE PM_WPDrives            = POINTER TO M_WPDrives;

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


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

CONST
  WPDrives_MajorVersion     = 1;
  WPDrives_MinorVersion     = 2;

TYPE
  WPDrivesClassDataStructure     = RECORD
    classObject                    : PSOMClass;
                                   END;

VAR
  WPDrivesClassData : WPDrivesClassDataStructure;

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


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


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

CONST
  M_WPDrives_MajorVersion   = 1;
  M_WPDrives_MinorVersion   = 2;

TYPE
  M_WPDrivesClassDataStructure   = RECORD
    classObject                    : PSOMClass;
                                   END;

VAR
  M_WPDrivesClassData : M_WPDrivesClassDataStructure;

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


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


END WPDRIVES.
