Changeset 690 for trunk/src/gui/kernel/qmime_pm.cpp
- Timestamp:
- Mar 16, 2010, 12:21:22 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/kernel/qmime_pm.cpp
r659 r690 1236 1236 /*! 1237 1237 \class QPMMime 1238 \brief The Q MPMime class maps open-standard MIME to OS/2 PM Clipboard1238 \brief The QPMMime class maps open-standard MIME to OS/2 PM Clipboard 1239 1239 formats. 1240 1240 \ingroup io … … 1270 1270 \endtable 1271 1271 1272 Note that all "x-mime:<mime>" formats use the CFI_POINTER storage type. That1273 is, the clipboard contains a pointer to the memory block containing the MIME1274 data in the corresponding format. The first 4 bytes of this memory block1275 always contain the length of the subsequent MIME data array, in bytes.1272 Note that all "x-mime:<mime>" formats use the \c CFI_POINTER storage type. 1273 That is, the clipboard contains a pointer to the memory block containing the 1274 MIME data in the corresponding format. The first 4 bytes of this memory 1275 block always contain the length of the subsequent MIME data array, in bytes. 1276 1276 1277 1277 An example use of this class by the user application would be to map the … … 1321 1321 1322 1322 /*! 1323 Unregisters the MIME type identified by \a id which was previously1323 Unregisters the MIME type identified by \a mimeId which was previously 1324 1324 registered with registerMimeType(). 1325 1325 */ … … 1340 1340 1341 1341 /*! 1342 Allocates a block of shared memory of the given size and returns the address1343 of this block. This memory block may be then filled with data and returned1344 by convertFromMimeData() as the value of theCFI_POINTER type.1342 Allocates a block of shared memory of the given \a size and returns the 1343 address of this block. This memory block may be then filled with data and 1344 returned by convertFromMimeData() as the value of the \c CFI_POINTER type. 1345 1345 */ 1346 1346 // static … … 1366 1366 1367 1367 /*! 1368 Frees memory allocated by allocateMemory(). Normally, not used because the1369 CFI_POINTER memory blocks are owned by the system after1368 Frees a memory block \a addr allocated by allocateMemory(). Normally, not 1369 used because the \c CFI_POINTER memory blocks are owned by the system after 1370 1370 convertFromMimeData() returns. 1371 1371 */ … … 1375 1375 DosFreeMem((PVOID)addr); 1376 1376 } 1377 1378 /*! 1379 \typedef QPMMime::QByteArrayList 1380 1381 A QList of QByteArray elemetns. 1382 */ 1377 1383 1378 1384 /*! … … 1421 1427 \fn QList<MimeCFPair> QPMMime::mimesForFormats(const QList<ULONG> &formats) const 1422 1428 1423 Returns a list of mime types that will be created form the specified \a list1424 of\a formats, in order of precedence (the most suitable mime type comes1429 Returns a list of mime types that will be created form the specified list of 1430 \a formats, in order of precedence (the most suitable mime type comes 1425 1431 first), or an empty list if neither of the \a formats is supported by this 1426 1432 converter. Note that each item in the returned list is actually a pair … … 1447 1453 QMimeData *mimeData) 1448 1454 1449 Returns a DragWorker instance suitable for converting \a mimeType to a set 1450 of drag items for the Direct Manipulation (Drag And Drop) session. If this 1451 converter does not support the given MIME type, this method should return 0. 1455 Returns a DragWorker instance suitable for converting \a mimeType of the 1456 given \a mimeData to a set of drag items for the Direct Manipulation (Drag 1457 And Drop) session. If this converter does not support the given MIME type, 1458 this method should return 0. 1452 1459 1453 1460 See the QPMMime::DragWorker class description for more information. … … 1514 1521 1515 1522 This class is a DragWorker implementation that supports standard 1516 DRM_SHAREDMEM andDRM_OS2FILE and rendering mechanisms. It uses1523 \c DRM_SHAREDMEM and \c DRM_OS2FILE and rendering mechanisms. It uses 1517 1524 QPMMime::DefaultDragWorker::Provider subclasses to map mime types of the 1518 1525 object being dragged to rendering formats and apply preprocessing of data … … 1541 1548 1542 1549 This class is a DropWorker implementation that supports standard 1543 DRM_SHAREDMEM andDRM_OS2FILE and rendering mechanisms. It uses1550 \c DRM_SHAREDMEM and \c DRM_OS2FILE and rendering mechanisms. It uses 1544 1551 QPMMime::DefaultDropWorker::Provider subclasses to map various rendering 1545 1552 formats to particular mime types and apply postprocessing of data after … … 1624 1631 1625 1632 /*! 1626 Returns a string representation of the given clipboard format.1627 Thestring representation is obtained by querying the system atom table.1633 Returns a string representation of the given clipboard \a format. The 1634 string representation is obtained by querying the system atom table. 1628 1635 */ 1629 1636 // static … … 1691 1698 1692 1699 /*! 1693 Checks that the given drag \a item supports the DRM_OS2FILE rendering1700 Checks that the given drag \a item supports the \c DRM_OS2FILE rendering 1694 1701 mechanism and can be rendered by a target w/o involving the source (i.e., 1695 DRM_OS2FILE is the first supported format and a valid file name with full1696 path is provided). If the function returns TRUE, \a fullName (if not NULL)1697 will be assigned the item's full source file name (composed from1702 \c DRM_OS2FILE is the first supported format and a valid file name with full 1703 path is provided). If the function returns \c TRUE, \a fullName (if not 1704 \c NULL) will be assigned the item's full source file name (composed from 1698 1705 \c hstrContainerName and \c hstrSourceName fields). 1699 1706 */ … … 1710 1717 // DrgVerifyNativeRMF doesn't work on my system (ECS 1.2.1 GA): 1711 1718 // it always returns FALSE regardless of arguments. Use simplified 1712 // hstrRMF parsing to determine whether DRM_OS2FILE is the native1719 // hstrRMF parsing to determine whether \c DRM_OS2FILE is the native 1713 1720 // mechanism or not (i.e. "^\s*[\(<]\s*DRM_OS2FILE\s*,.*"). 1714 1721 … … 1770 1777 1771 1778 /*! 1772 Parses the given \a rmfs list (full rendering mechanism/format specification) 1773 and builds a \a list of mechanism branches. Each mechanism branch is also a 1774 list, where the first item is the mechahism name and all subsequent items are 1775 formats supported by this mechanism. Returns false if fails to parse \a rmf. 1779 Parses the given \a rmfs list (the full rendering mechanism/format 1780 specification) and builds a \a list of mechanism branches. Each mechanism 1781 branch is also a list, where the first item is the mechahism name and all 1782 subsequent items are formats supported by this mechanism. Returns false if 1783 fails to parse \a rmfs. 1776 1784 1777 1785 \note The method clears the given \a list variable before proceeding.
Note:
See TracChangeset
for help on using the changeset viewer.