[csmaild-cvs] csmaild/src/Common DataItem.cs,NONE,1.1 Message.cs,NONE,1.1 Common.csproj,1.1,1.2 Mail
Brought to you by:
tamc
From: <ta...@us...> - 2003-07-24 04:32:25
|
Update of /cvsroot/csmaild/csmaild/src/Common In directory sc8-pr-cvs1:/tmp/cvs-serv32149/src/Common Modified Files: Common.csproj Mailbox.cs Added Files: DataItem.cs Message.cs Log Message: Long time, no commit. Upgraded to VS.NET 2003 Lots of code changes, still pre-pre-pre-alpha, so who's keeping track --- NEW FILE: DataItem.cs --- using System; using Common.MailstoreProviders; namespace Common { /// <summary> /// Base class for all things data /// </summary> public class DataItem { protected IMailstoreProvider mMailstoreProvider; public DataItem(IMailstoreProvider provider) { mMailstoreProvider = provider; } } } --- NEW FILE: Message.cs --- using System; namespace Common { /// <summary> /// Represents a message /// </summary> public class Message { #region Variables private int mUniqueId; private bool mSeen; private bool mAnswered; private bool mFlagged; private bool mDeleted; private bool mDraft; private bool mRecent; private int mSize; #endregion #region Properties /// <summary> /// The UID of this message /// </summary> public int UniqueId { get { return mUniqueId; } } /// <summary> /// Whether the message has been seen /// </summary> public bool Seen { get { return mSeen; } set { mSeen = value; } } /// <summary> /// Whether the message has been answered /// </summary> public bool Answered { get { return mAnswered; } set { mAnswered = value; } } /// <summary> /// Whether the message has been flagged /// </summary> public bool Flagged { get { return mFlagged; } set { mFlagged = value; } } /// <summary> /// Whether the message has been deleted /// </summary> public bool Deleted { get { return mDeleted; } set { mDeleted = value; } } /// <summary> /// Whether the message is a draft /// </summary> public bool Draft { get { return mDraft; } set { mDraft = value; } } /// <summary> /// Whether the message is recent /// </summary> public bool Recent { get { return mRecent; } set { mRecent = value; } } /// <summary> /// Size of the message (as defined by RFC-2822 /// </summary> public int Size { get { return mSize; } } #endregion public Message(int uid, bool seen, bool answered, bool flagged, bool deleted, bool draft, bool recent, int size) { mUniqueId = uid; mSeen = seen; mAnswered = answered; mFlagged = flagged; mDeleted = deleted; mDraft = draft; mRecent = recent; mSize = size; } } } Index: Common.csproj =================================================================== RCS file: /cvsroot/csmaild/csmaild/src/Common/Common.csproj,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Common.csproj 8 Apr 2003 03:02:18 -0000 1.1 --- Common.csproj 24 Jul 2003 04:32:13 -0000 1.2 *************** *** 2,7 **** <CSHARP ProjectType = "Local" ! ProductVersion = "7.0.9466" ! SchemaVersion = "1.0" ProjectGuid = "{19D49838-BF7A-4432-9C84-F50AE399077B}" > --- 2,7 ---- <CSHARP ProjectType = "Local" ! ProductVersion = "7.10.3077" ! SchemaVersion = "2.0" ProjectGuid = "{19D49838-BF7A-4432-9C84-F50AE399077B}" > *************** *** 17,21 **** --- 17,24 ---- DelaySign = "false" OutputType = "Library" + PreBuildEvent = "" + PostBuildEvent = "" RootNamespace = "Common" + RunPostBuildEvent = "OnBuildSuccess" StartupObject = "" > *************** *** 31,34 **** --- 34,39 ---- FileAlignment = "4096" IncrementalBuild = "true" + NoStdLib = "false" + NoWarn = "" Optimize = "false" OutputPath = "bin\Debug\" *************** *** 49,52 **** --- 54,59 ---- FileAlignment = "4096" IncrementalBuild = "false" + NoStdLib = "false" + NoWarn = "" Optimize = "true" OutputPath = "bin\Release\" *************** *** 83,87 **** --- 90,114 ---- /> <File + RelPath = "DataItem.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "Mailbox.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "Message.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "MailstoreProviders\IMailstoreProvider.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "MailstoreProviders\XmlMailstoreProvider.cs" SubType = "Code" BuildAction = "Compile" Index: Mailbox.cs =================================================================== RCS file: /cvsroot/csmaild/csmaild/src/Common/Mailbox.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Mailbox.cs 8 Apr 2003 03:02:18 -0000 1.1 --- Mailbox.cs 24 Jul 2003 04:32:13 -0000 1.2 *************** *** 1,4 **** --- 1,6 ---- using System; + using Common.MailstoreProviders; + namespace Common { *************** *** 6,20 **** /// Represents a mailbox /// </summary> ! public class Mailbox { ! #region "Variables" private string mName; ! // private int mNextUniqueId; ! // private int mUniqueIdValidity; ! // private Mailbox mParent; ! // private Mailbox[] mChildren; #endregion ! #region "Properties" /// <summary> /// The human readable name of this mailbox --- 8,25 ---- /// Represents a mailbox /// </summary> ! public class Mailbox : DataItem { ! #region Variables private string mName; ! private string mFullName; ! private int mNextUniqueId; ! private int mUniqueIdValidity; ! private Mailbox mParent; ! private Mailbox[] mChildren; // TODO: Make a strongly typed collection ! ! private Message[] mMessages; // TODO: Make a strongly typed collection #endregion ! #region Properties /// <summary> /// The human readable name of this mailbox *************** *** 39,43 **** get { ! return 0;//mNextUniqueId; } } --- 44,48 ---- get { ! return mNextUniqueId;; } } *************** *** 50,60 **** get { ! return 0;//mUniqueIdValidity; } } #endregion ! public Mailbox() { } } --- 55,117 ---- get { ! return mUniqueIdValidity; ! } ! } ! ! /// <summary> ! /// The parent Mailbox for this mailbox (null if none) ! /// </summary> ! public Mailbox Parent ! { ! get ! { ! return mParent; ! } ! set ! { ! mParent = value; ! } ! } ! ! /// <summary> ! /// The child Mailboxes for this mailbox (valid array of size 0 if none) ! /// </summary> ! public Mailbox[] Children ! { ! get ! { ! return mChildren; ! } ! set ! { ! mChildren = value; ! } ! } ! ! /// <summary> ! /// The Messages contained in this mailbox ! /// </summary> ! public Message[] Messages ! { ! get ! { ! return mMessages; ! } ! set ! { ! mMessages = value; } } #endregion ! public Mailbox(IMailstoreProvider provider, string name, string fullName, int nextUniqueId, int uniqueIdValidity) : base(provider) { + mNextUniqueId = nextUniqueId; + mUniqueIdValidity = uniqueIdValidity; + mName = name; + mFullName = fullName; + mParent = null; + mChildren = null; + mMessages = null; } } |