icqprofile.h
上传用户:zslianheng
上传日期:2013-04-03
资源大小:946k
文件大小:1k
源码类别:

Linux/Unix编程

开发平台:

Visual C++

  1. /***************************************************************************
  2.  *                                                                         *
  3.  *   This program is free software; you can redistribute it and/or modify  *
  4.  *   it under the terms of the GNU General Public License as published by  *
  5.  *   the Free Software Foundation; either version 2 of the License, or     *
  6.  *   (at your option) any later version.                                   *
  7.  *                                                                         *
  8.  *   copyright            : (C) 2002 by Zhang Yong                         *
  9.  *   email                : z-yong163@163.com                              *
  10.  ***************************************************************************/
  11. #ifndef _ICQ_PROFILE_H
  12. #define _ICQ_PROFILE_H
  13. #include "icqtypes.h"
  14. class IcqProfile {
  15. public:
  16. virtual void writeBool(const char *key, bool b) = 0;
  17. virtual void writeString(const char *key, const char *val) = 0;
  18. virtual void writeInt(const char *key, int val) = 0;
  19. virtual void writePassword(const char *key, const char *passwd) = 0;
  20. virtual bool readBool(const char *key) = 0;
  21. virtual void readString(const char *key, string &val) = 0;
  22. virtual int readInt(const char *key) = 0;
  23. virtual void readPassword(const char *key, string &passwd) = 0;
  24. };
  25. #endif