Click here to Skip to main content
15,892,839 members
Articles / Desktop Programming / MFC

Exile 1.8 - The Password Manager

Rate me:
Please Sign up or sign in to vote.
4.57/5 (51 votes)
6 Mar 20058 min read 256.7K   7.4K   111  
Yet another password manager.
#ifndef __XMLEXPORTFLAGS_H__
#define __XMLEXPORTFLAGS_H__

const unsigned int XEF_CATEGORYNAME = 0x0001;
const unsigned int XEF_CATEGORYDESCRIPTION = 0x0002;
const unsigned int XEF_CATEGORYICON = 0x0004;
const unsigned int XEF_CATEGORYRATING = 0x0008;
const unsigned int XEF_ELEMENTNAME = 0x0010;
const unsigned int XEF_LOGIN = 0x0020;
const unsigned int XEF_PASSWORD = 0x0040;
const unsigned int XEF_ADDRESS = 0x0080;
const unsigned int XEF_NOTES = 0x0100;
const unsigned int XEF_ELEMENTRATING = 0x0200;
const unsigned int XEF_ELEMENTICON = 0x0400;
const unsigned int XEF_SMARTTYPE = 0x0800;
const unsigned int XEF_TARGETWINDOWTITLE = 0x1000;
const unsigned int XEF_LOGINCONTROLID = 0x2000;
const unsigned int XEF_PASSWORDCONTROLID = 0x4000;

/////////////////////////////////////////////////////////////////////////////
// Some helper things

inline BOOL ExportCategoryName(unsigned int nFlags)
{
	return nFlags & XEF_CATEGORYNAME;
}

inline BOOL ExportCategoryDescription(unsigned int nFlags)
{
	return nFlags & XEF_CATEGORYDESCRIPTION;
}

inline BOOL ExportCategoryIcon(unsigned int nFlags)
{
	return nFlags & XEF_CATEGORYICON;
}

inline BOOL ExportCategoryRating(unsigned int nFlags)
{
	return nFlags & XEF_CATEGORYRATING;
}

inline BOOL ExportElementName(unsigned int nFlags)
{
	return nFlags & XEF_ELEMENTNAME;
}

inline BOOL ExportLogin(unsigned int nFlags)
{
	return nFlags & XEF_LOGIN;
}

inline BOOL ExportPassword(unsigned int nFlags)
{
	return nFlags & XEF_PASSWORD;
}

inline BOOL ExportAddress(unsigned int nFlags)
{
	return nFlags & XEF_ADDRESS;
}

inline BOOL ExportNotes(unsigned int nFlags)
{
	return nFlags & XEF_NOTES;
}

inline BOOL ExportElementRating(unsigned int nFlags)
{
	return nFlags & XEF_ELEMENTRATING;
}

inline BOOL ExportElementIcon(unsigned int nFlags)
{
	return nFlags & XEF_ELEMENTICON;
}

inline BOOL ExportSmartType(unsigned int nFlags)
{
	return nFlags & XEF_SMARTTYPE;
}

inline BOOL ExportTargetWindowTitle(unsigned int nFlags)
{
	return nFlags & XEF_TARGETWINDOWTITLE;
}

inline BOOL ExportLoginControlID(unsigned int nFlags)
{
	return nFlags & XEF_LOGINCONTROLID;
}

inline BOOL ExportPasswordControlID(unsigned int nFlags)
{
	return nFlags & XEF_PASSWORDCONTROLID;
}

#endif //__XMLEXPORTFLAGS_H__

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Russian Federation Russian Federation
I'll think about it later on...

Comments and Discussions