home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / modules / rdf / src / pm2rdf.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.9 KB  |  62 lines

  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. #ifndef    _RDF_PM2RDF_H_
  20. #define    _RDF_PM2RDF_H_
  21.  
  22. #include "rdf.h"
  23. #include "rdf-int.h"
  24. #include "utils.h"
  25.  
  26.  
  27.  
  28. /* pm2rdf.c data structures and defines */
  29.  
  30. #define pmUnitp(u) ((resourceType(u) == PM_RT) || (resourceType(u) == IM_RT))
  31.  
  32. #ifdef    XP_WIN
  33. #define    POPMAIL_URL_OFFSET    9
  34. #define    IMAPMAIL_URL_OFFSET    6
  35. #else
  36. #define    POPMAIL_URL_OFFSET    8
  37. #define    IMAPMAIL_URL_OFFSET    5
  38. #endif
  39.  
  40.  
  41.  
  42. /* pm2rdf.c function prototypes */
  43.  
  44. XP_BEGIN_PROTOS
  45.  
  46. char *        popmailboxesurl(void);
  47. char *        imapmailboxesurl(void);
  48. void        buildMailList(RDF_Resource ms);
  49. PRDir *        OpenMailDir(char *name);
  50. RDFT        MakeMailStore (char* url);
  51. RDF_Error    PMInit (RDFT ntr);
  52. PRBool        pmHasAssertion (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
  53. void *        pmGetSlotValue (RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep,  PRBool tv);
  54. RDF_Cursor    pmGetSlotValues (RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type,  PRBool inversep, PRBool tv);
  55. void *        pmNextValue (RDFT rdf, RDF_Cursor c);
  56. RDF_Error    pmDisposeCursor (RDFT rdf, RDF_Cursor c);
  57. RDF_Resource    CreatePMUnit (char* nname, RDF_BT rdfType, PRBool isDirectoryFlag);
  58.  
  59. XP_END_PROTOS
  60.  
  61. #endif
  62.