Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

qcookie.h

00001 // -*- c++ -*-
00002 
00003 #ifndef QCOOKIE_H
00004 #define QCOOKIE_H
00005 
00006 #include <qstring.h>
00007 
00013 class QCookie
00014 {
00015 public:
00016    QCookie( const QCookie &c );
00017    QCookie( const QString &name, const QString &value );
00018    ~QCookie();
00019 
00020    QString comment() const { return com; }
00021    void setComment( const QString &s ) { com = s; }
00022    
00023    QString domain() const { return dom; }
00024    void setDomain( const QString &dm ) { dom = dm; }
00025    
00026    int maxAge() const { return maxage; }
00027    void setMaxAge( int age ) { maxage = age; }
00028    
00029    QString name() const { return nm; }
00030    void setName( const QString &name ) { nm = name; }
00031    
00032    QString path() const { return pth; }
00033    void setPath( const QString &path ) { pth = path; }
00034    
00035    bool isSecure() const { return secure; }
00036    void setSecure( bool yes ) { secure = yes; }
00037    
00038    QString value() const { return val; }
00039    void setValue( const QString &value ) { val = value; }
00040    
00041    int version() const { return ver; }
00042    void setVersion( int version ) { ver = version; }
00043    
00045    QString expires() const;
00046 
00047 private:
00048    QString com;
00049    QString dom;
00050    int maxage;
00051    QString nm;
00052    QString pth;
00053    bool secure;
00054    QString val;
00055    int ver;
00056 };
00057 
00058 #endif
00059 
00060 // Local Variables:
00061 // c-basic-offset: 3
00062 // End:

Generated on Wed Apr 9 23:50:21 2003 for QXServlet by doxygen1.2.17