Update and rename user.h to User.h

This commit is contained in:
Brandon Jackson 2015-10-06 23:31:52 -05:00
parent 5dffb83905
commit dc2a3dad55

View file

@ -53,11 +53,28 @@ public:
vector<string> getInfo();
};
class Article {
string author;
string text;
string timestamp;
string length;
public:
Article();
Article(string a, string text, string time);
string getAuthor();
string getText();
string getTimestamp();
string getLength();
vector<string> getInfo();
};
class Board {
string name;
string description;
bool lockedForGroup;
string group;
vector<Article> articles;
public:
Board();
@ -68,6 +85,8 @@ public:
bool checkIfLocked();
string getGroup();
vector<string> getInfo();
vector<Article> getArticles();
void addArticle(Article article);
};
class Group {
@ -85,17 +104,26 @@ public:
vector<string> getInfo();
};
class Article {
string author;
string timestamp;
int length;
public:
Article();
Article(string a, string t, int l);
string getAuthor();
string getTimestamp();
string getLength();
vector<string> getInfo();
};
/*
void mainMenu()
{
cout<<"\n\n***************"<<endl;
cout<<"** Main Menu **"<<endl;
cout<<"***************\n"<<endl;
cout<<"\n5. Account Settings"<<endl;
cout<<"4. Articles"<<endl;
cout<<"3. Boards"<<endl;
cout<<"2. View Messages"<<endl;
cout<<"1. Groups\n"<<endl;
if (currentUser.confirmAdmin() == true)
{
cout<<"9. View pending account requests\n"<<endl;
cout<<"10. View current users\n"<<endl;
}
cout<<"8. Logout\n"<<endl;
cout<<"Enter choice: ";
}
*/