buddyinfo.h
1 //------------------------------------------------------------------------------
2 // buddyinfo.h
3 //
4 // Copyright (C) 2010 "Zalewa" <zalewapl@gmail.com>
5 //------------------------------------------------------------------------------
6 #ifndef __BUDDYINFO_H__
7 #define __BUDDYINFO_H__
8 
9 #include <QRegExp>
10 #include <QString>
11 #include <QVector>
12 
13 class BuddyInfo
14 {
15  public:
16  enum PatternType
17  {
18  PT_BASIC,
19  PT_ADVANCED
20  };
21 
22  static QString createConfigEntry(const QVector<BuddyInfo>& buddies);
23  static void readConfigEntry(const QString& configEntry, QVector<BuddyInfo>& outVector);
24 
25  QRegExp pattern;
26  PatternType patternType;
27 
28 };
29 
30 #endif