home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / sdsmcon.idl < prev    next >
Encoding:
Text File  |  1996-02-22  |  4.2 KB  |  118 lines

  1. #ifndef Datastore_idl
  2. #define Datastore_idl
  3.  
  4. #include <somcls.idl>
  5. #include <sdsmcbs.idl>
  6. #include <sdsexc.idl>
  7.  
  8. /***********************************************
  9.  
  10.     Licensed Materials - Property of IBM
  11.  
  12.     5622-880   5801-AAR
  13.  
  14.     (c) Copyright IBM Corp 1991, 1996.
  15.  
  16. ************************************************/
  17.  
  18. interface Datastore;
  19.  
  20. interface DatastoreFactory : SOMClass {
  21.  
  22.     Datastore create_object();
  23.     Datastore create_object_defaults(in string datastore_name,
  24.                                      in string user_name,
  25.                                      in string authentication);
  26.  
  27.     #ifdef __SOMIDL__
  28.     implementation {
  29.  
  30.         releaseorder : create_object,
  31.                        create_object_defaults;
  32.     passthru C_xh = "#ifndef __TOS_WIN__                         "
  33.                     " #ifndef __NO_DEFAULT_LIBS__                "
  34.                     "   #pragma library(\"SOMTK.LIB\")           "
  35.                     "   #ifdef __IMPORTLIB__                     "
  36.                     "      #pragma library(\"CPPOAI3I.LIB\")     "
  37.                     "   #else                                    "
  38.                     "      #pragma library(\"CPPOAI3.LIB\")      "
  39.                     "   #endif                                   "
  40.                     " #endif                                     "
  41.                     "#else                                       "
  42.                     " #ifndef __NO_DEFAULT_LIBS__                "
  43.                     "   #pragma library(\"SOMTK.LIB\")           "
  44.                     "   #ifdef __IMPORTLIB__                     "
  45.                     "      #pragma library(\"CPPWAI3I.LIB\")     "
  46.                     "   #else                                    "
  47.                     "      #pragma library(\"CPPWAI3.LIB\")      "
  48.                     "   #endif                                   "
  49.                     " #endif                                     "
  50.                     "#endif                                      "
  51.                     "#include <idaxbs.h>                         ";
  52.     passthru C_h =  "#ifndef __TOS_WIN__                         "
  53.                     " #ifndef __NO_DEFAULT_LIBS__                "
  54.                     "   #pragma library(\"SOMTK.LIB\")           "
  55.                     "   #ifdef __IMPORTLIB__                     "
  56.                     "      #pragma library(\"CPPOAI3I.LIB\")     "
  57.                     "   #else                                    "
  58.                     "      #pragma library(\"CPPOAI3.LIB\")      "
  59.                     "   #endif                                   "
  60.                     " #endif                                     "
  61.                     "#else                                       "
  62.                     " #ifndef __NO_DEFAULT_LIBS__                "
  63.                     "   #pragma library(\"SOMTK.LIB\")           "
  64.                     "   #ifdef __IMPORTLIB__                     "
  65.                     "      #pragma library(\"CPPWAI3I.LIB\")     "
  66.                     "   #else                                    "
  67.                     "      #pragma library(\"CPPWAI3.LIB\")      "
  68.                     "   #endif                                   "
  69.                     " #endif                                     "
  70.                     "#endif                                      "
  71.                     "#include <idaxbs.h>                         ";
  72.  
  73.        #ifndef WIN_NT_BUILD
  74.          dllname = "cppoai3i.dll";
  75.        #else
  76.          dllname = "cppwai3i.dll";
  77.        #endif
  78.  
  79.     };
  80.     #endif
  81.  
  82. };
  83.  
  84.  
  85. interface Datastore : DatastoreBase {
  86.  
  87.   boolean
  88.       is_sharemode_exclusive ();
  89.  
  90.   void
  91.       enable_sharemode_exclusive ( in boolean enable );
  92.  
  93.    #ifdef __SOMIDL__
  94.    implementation
  95.    {
  96.       metaclass = DatastoreFactory;
  97.  
  98.       releaseorder:
  99.                     is_sharemode_exclusive,
  100.                     enable_sharemode_exclusive;
  101.  
  102.       passthru C_xih = "#include \"sdsmcon.xh\"";
  103.        #ifndef WIN_NT_BUILD
  104.          dllname = "cppoai3i.dll";
  105.        #else
  106.          dllname = "cppwai3i.dll";
  107.        #endif
  108.  
  109.       somInit: override;
  110.       somUninit: override;
  111.    };
  112.    #endif
  113.  
  114.  
  115. };
  116. #endif
  117.  
  118.