home *** CD-ROM | disk | FTP | other *** search
-
- //# This file was generated by the SOM Compiler.
- //# FileName: wpfsys.id2.
- //# Generated using:
- //# SOM Precompiler somopc: 2.2
- //# SOM Emitter emitidl: 2.7
-
- // Module Header
- //
- // Module Name: WPFSYS
- //
- // OS/2 Presentation Manager Workplace class definitions
- //
- // Copyright (c) International Business Machines Corporation 1991, 1992
- //
-
- #ifndef wpfsys_idl
- #define wpfsys_idl
-
- #include "wpobject.idl"
- #include <somcls.idl>
-
- interface M_WPFileSystem;
-
- interface WPFileSystem : WPObject
-
- {
- BOOL wpSetRealName(in PSZ pszName);
-
- BOOL wpSetType(in PSZ pszTypes,
- in PFEA2LIST pfeal);
-
- PSZ wpQueryType();
-
- BOOL wpSetAttr(in ULONG attrFile);
-
- ULONG wpQueryAttr();
-
- ULONG wpAddFile1Page(in HWND hwndNotebook);
-
- ULONG wpAddFile2Page(in HWND hwndNotebook);
-
- ULONG wpAddFile3Page(in HWND hwndNotebook);
-
- ULONG wpAddFileMenuPage(in HWND hwndNotebook);
-
- ULONG wpQueryCreation(inout FDATE fdate,
- inout FTIME ftime);
-
- ULONG wpQueryLastAccess(inout FDATE fdate,
- inout FTIME ftime);
-
- ULONG wpQueryLastWrite(inout FDATE fdate,
- inout FTIME ftime);
-
- ULONG wpQueryFileSize();
-
- ULONG wpQueryEASize();
-
- ULONG wpSetDateInfo(inout FILEFINDBUF4 pstFileFindBuf);
-
- ULONG wpSetFileSizeInfo(in ULONG cbFileSize,
- in ULONG cbEASize);
-
- BOOL wpRefresh(in ULONG ulView,
- in PVOID pReserved);
-
- ULONG wpQueryRefreshFlags();
-
- BOOL wpSetRefreshFlags(in ULONG ulRefreshFlags);
-
- BOOL wpPrintPlainTextFile(in PPRINTDEST pPrintDest);
-
- BOOL wpSetTitleAndRenameFile(in PSZ pszNewTitle,
- in ULONG fConfirmations);
-
- ULONG wpConfirmRenameFileWithExt();
-
- ULONG wpVerifyUpdateAccess();
-
- BOOL wpAddUserItemsToPopupMenu(in HWND hwndMenu,
- in HWND hwndCnr,
- in ULONG iPosition);
-
- BOOL wpQueryRealName(in PSZ pszFilename,
- in PULONG pcb,
- in BOOL fQualified);
-
-
-
-
- #ifdef __SOMIDL__
- implementation {
-
- releaseorder: wpSetRealName,withdrawn_wpQueryRealName,wpSetType,
- wpQueryType,wpSetAttr,wpQueryAttr,wpQueryFilename,
- wpAddFile1Page,wpAddFile2Page,wpAddFile3Page,wpAddFileMenuPage,
- wpQueryCreation,wpQueryLastAccess,wpQueryLastWrite,
- wpQueryFileSize,wpQueryEASize,wpSetDateInfo,wpSetFileSizeInfo,
- wpRefresh,wpPrintPlainTextFile,wpSetRefreshFlags,
- wpQueryRefreshFlags,wpQueryDriveData,wpSetTitleAndRenameFile,
- wpConfirmRenameFileWithExt,wpConfirmKeepAssoc,wpAddUserMenuItem,
- wpQueryDisk,wpQueryDateInfo,wpSetNewRealName,wpAdoptNewRealName,
- wpQueryRealName,wpVerifyUpdateAccess,wpAddUserItemsToPopupMenu;
-
- //# Class Modifiers
- externalstem = wpfs;
- local;
- externalprefix = fs_;
- majorversion = 1;
- minorversion = 2;
- filestem = wpfsys;
- metaclass = M_WPFileSystem;
- callstyle = oidl;
- dllname = "pmwp.dll"; //sahsom2
-
-
- passthru C_h_after = " /* Structure used to read + write the .CLASSINFO ea */"
- ""
- " typedef struct _INFOCLASS"
- " {"
- " ULONG flags;"
- " PSZ pszClass;"
- " ULONG cbObjData;"
- " POBJDATA pObjData;"
- " } INFOCLASS;"
- " typedef INFOCLASS * PINFOCLASS;"
- ""
- " /* FILEDETAILS structure used for details view */"
- ""
- " typedef struct _FILEDETAILS"
- " {"
- " PSZ pszRealName; /* Real name */"
- " ULONG ulSize; /* Size of the file */"
- " CDATE cdateLastMod; /* Last modification date */"
- " CTIME ctimeLastMod; /* Last modification time */"
- " CDATE cdateLastAccess; /* Last access date */"
- " CTIME ctimeLastAccess; /* Last access time */"
- " CDATE cdateCreation; /* Date of creation */"
- " CTIME ctimeCreation; /* Time of creation */"
- " ULONG ulFlags; /* File flags */"
- " } FILEDETAILS;"
- ""
- " typedef FILEDETAILS * PFILEDETAILS;"
- ""
- " #define NUM_FILEDETAILS_FIELDS 9 /* Count of fields in FILEDETAILS */"
- ""
- " /* format of the extended search criteria for this class */"
- " typedef struct _FILESYS_SEARCH_INFO {"
- " USHORT Exclude;"
- " USHORT MustHave;"
- ""
- " BOOL fIncludeLMD;"
- " USHORT LMDyear;"
- " USHORT LMDmonth;"
- " USHORT LMDday;"
- " SHORT LMDcriteria;"
- ""
- " BOOL fIncludeLMT;"
- " USHORT LMThours;"
- " USHORT LMTminutes;"
- " USHORT LMTseconds;"
- " SHORT LMTcriteria;"
- ""
- " BOOL fIncludeFDS;"
- " ULONG FDSsize;"
- " SHORT FDScriteria;"
- ""
- " BOOL fIncludeFEAS;"
- " ULONG FEASsize;"
- " SHORT FEAScriteria;"
- ""
- " BOOL fMustHaveNeedEA;"
- " BOOL fMustNotHaveNeedEA;"
- " } FILESYS_SEARCH_INFO;"
- " typedef FILESYS_SEARCH_INFO *PFILESYS_SEARCH_INFO;"
- ""
- ""
- " /* Alignment macro: ensure alignment on 4byte boundary */"
- ""
- " #define ALIGN4(p) (PVOID)( ( ((ULONG)p) + 3 ) & 0xFFFFFFFC )"
- ""
- " /* return values for wpConfirmRenameFileWithExt */"
- " #define KEEP_RENAMEFILESWITHEXT 1"
- " #define DISCARD_RENAMEFILESWITHEXT 2"
- " #define CANCEL_RENAMEFILESWITHEXT 3"
- ""
- ""
- "";
-
-
- //# Method Modifiers
- wpUnInitData: override;
- wpQueryHandle: override;
- wpSaveImmediate: override;
- wpFilterPopupMenu: override;
- wpSetTitle: override;
- wpViewObject: override;
- wpSwitchTo: override;
- wpAddSettingsPages: override;
- wpCopyObject: override;
- wpCreateFromTemplate: override;
- wpMoveObject: override;
- wpQueryIconData: override;
- wpSetIconData: override;
- wpQueryDetailsData: override;
- wpModifyPopupMenu: override;
- wpSaveState: override;
- wpRestoreState: override;
- wpMenuItemSelected: override;
- wpOpen: override;
- wpDraggedOverObject: override;
- wpDroppedOnObject: override;
- wpFormatDragItem: override;
- wpQueryNameClashOptions: override;
- wpAppendObject: override;
- wpReplaceObject: override;
- wpQueryStyle: override;
- wpSetStyle: override;
- wpDoesObjectMatch: override;
-
- //# Data Modifiers
-
-
- };
- #endif /* __SOMIDL__ */
- };
-
- interface M_WPFileSystem
- {
- WPObject wpclsQueryObjectFromPath(in PSZ pszFQPath);
-
- PSZ wpclsQueryInstanceType();
-
- PSZ wpclsQueryInstanceFilter();
-
-
-
- #ifdef __SOMIDL__
- implementation {
-
- releaseorder: wpclsQueryInstanceType,wpclsQueryInstanceFilter,wpclsQueryObjectFromPath;
-
- //# Class Modifiers
- externalstem = wpfs;
- local;
- externalprefix = fsM_;
- majorversion = 1;
- minorversion = 2;
- filestem = wpfsys;
- callstyle = oidl;
- dllname = "pmwp.dll"; //sahsom2
-
- //# Method Modifiers
- wpclsInitData: override;
- wpclsQueryTitle: override;
- wpclsQueryDetailsInfo: override;
- wpclsQuerySearchInfo: override;
- wpclsQueryExtendedCriteria: override;
-
-
- };
- #endif /* __SOMIDL__ */
- };
-
- #endif /* wpfsys_idl */
-