Name

DavManager

Synopsis

class DavManager : public SimpleWrappedObjectSernaApi::SimpleWrappedObject {
public:
  

  enum OpenFlags { DAV_OPEN_READ =  01, DAV_OPEN_WRITE =  02, DAV_OPEN_MKPATH =  04 };

  enum OpStatus { DAV_RESULT_OK =  0, DAV_RESULT_BAD_URL, 
                  DAV_RESULT_CONNECT_FAILED, DAV_RESULT_AUTH_FAILED, 
                  DAV_RESULT_BAD_PROTOCOL, DAV_RESULT_IO_ERROR, 
                  DAV_RESULT_CANNOT_OPEN, DAV_RESULT_LOCKED };

  enum LockOp { DAV_LOCK, DAV_UNLOCK, DAV_CHECK_LOCK, DAV_CHECK_LOCKSTORE };
  // construct/copy/destruct
  DavManager(SernaApiBase * = 0);

  // public member functions

  OpStatus listCollection(const Url &, PropertyNode &) ;
  OpStatus makeCollection(const Url &) ;
  OpStatus getResourceInfo(const Url &, PropertyNode &) ;
  OpStatus lock(const Url &, LockOp, int = 0) ;
  OpStatus copy(const Url &, const Url &) ;
  OpStatus open(const Url &, int, QIODevice *&) ;
  void closeSessions() ;
  SString lastError() const;

  // public static functions

  DavManager instance() ;
};

Description

DavManager construct/copy/destruct

  1. DavManager(SernaApiBase * = 0);


DavManager public member functions

  1. OpStatus listCollection(const Url & url, PropertyNode & result) ;


  2. OpStatus makeCollection(const Url & url) ;


  3. OpStatus getResourceInfo(const Url & url, PropertyNode & result) ;


  4. OpStatus lock(const Url & url, LockOp op, int key = 0) ;


  5. OpStatus copy(const Url & from, const Url & to) ;


  6. OpStatus open(const Url & url, int openFlags, QIODevice *& ) ;


  7. void closeSessions() ;


  8. SString lastError() const;


DavManager public static functions

  1. DavManager instance() ;