2008-12-21 22:17:09 +01:00
|
|
|
/*
|
2010-02-28 01:08:10 +01:00
|
|
|
* This file is a part of Winix
|
2008-12-21 22:17:09 +01:00
|
|
|
* and is not publicly distributed
|
|
|
|
*
|
2010-02-28 22:33:06 +01:00
|
|
|
* Copyright (c) 2008-2010, Tomasz Sowa
|
2008-12-21 22:17:09 +01:00
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2011-01-23 15:15:30 +01:00
|
|
|
#ifndef headerfile_winix_core_group
|
|
|
|
#define headerfile_winix_core_group
|
2008-12-21 22:17:09 +01:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct Group
|
|
|
|
{
|
|
|
|
long id;
|
2010-11-21 01:19:17 +01:00
|
|
|
std::wstring name; // group name
|
2008-12-21 22:17:09 +01:00
|
|
|
std::vector<long> members; // users id
|
|
|
|
|
|
|
|
Group()
|
|
|
|
{
|
|
|
|
Clear();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Clear()
|
|
|
|
{
|
|
|
|
id = -1;
|
|
|
|
name.clear();
|
|
|
|
members.clear();
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|