[csmaild-cvs] csmaild/src/Common User.cs,NONE,1.1 Common.csproj,1.2,1.3 Mailbox.cs,1.2,1.3 Message.c
Brought to you by:
tamc
From: <ta...@us...> - 2003-07-25 03:39:16
|
Update of /cvsroot/csmaild/csmaild/src/Common In directory sc8-pr-cvs1:/tmp/cvs-serv31506/src/Common Modified Files: Common.csproj Mailbox.cs Message.cs Added Files: User.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 Removed LOGINDISABLED from CAPABILITY response as well, it's not disabled --- NEW FILE: User.cs --- using Common.MailstoreProviders; using System; namespace Common { /// <summary> /// Represents a server user /// </summary> public class User : DataItem { #region Variables private string mUsername; private string mPassword; #endregion #region Properties /// <summary> /// The username of this user /// </summary> public string Username { get { return mUsername; } } /// <summary> /// The password of this user /// </summary> public string Password { get { return mPassword; } } public Mailbox[] Mailboxes { get { return mMailstoreProvider.GetMailboxes(this); } } #endregion public User(IMailstoreProvider provider, string username, string password) : base(provider) { mUsername = username; mPassword = password; } } } Index: Common.csproj =================================================================== RCS file: /cvsroot/csmaild/csmaild/src/Common/Common.csproj,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Common.csproj 24 Jul 2003 04:32:13 -0000 1.2 --- Common.csproj 25 Jul 2003 03:39:12 -0000 1.3 *************** *** 105,108 **** --- 105,113 ---- /> <File + RelPath = "User.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "MailstoreProviders\IMailstoreProvider.cs" SubType = "Code" Index: Mailbox.cs =================================================================== RCS file: /cvsroot/csmaild/csmaild/src/Common/Mailbox.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Mailbox.cs 24 Jul 2003 04:32:13 -0000 1.2 --- Mailbox.cs 25 Jul 2003 03:39:12 -0000 1.3 *************** *** 1,6 **** - using System; - using Common.MailstoreProviders; namespace Common { --- 1,6 ---- using Common.MailstoreProviders; + using System; + namespace Common { *************** *** 17,22 **** private Mailbox mParent; private Mailbox[] mChildren; // TODO: Make a strongly typed collection ! ! private Message[] mMessages; // TODO: Make a strongly typed collection #endregion --- 17,21 ---- private Mailbox mParent; private Mailbox[] mChildren; // TODO: Make a strongly typed collection ! private User mUser; // the owner of this mailbox #endregion *************** *** 96,109 **** get { ! return mMessages; ! } ! set ! { ! mMessages = value; } } #endregion ! public Mailbox(IMailstoreProvider provider, string name, string fullName, int nextUniqueId, int uniqueIdValidity) : base(provider) { mNextUniqueId = nextUniqueId; --- 95,104 ---- get { ! return mMailstoreProvider.GetMessages(this); } } #endregion ! public Mailbox(IMailstoreProvider provider, string name, string fullName, int nextUniqueId, int uniqueIdValidity, User user) : base(provider) { mNextUniqueId = nextUniqueId; *************** *** 113,117 **** mParent = null; mChildren = null; ! mMessages = null; } } --- 108,112 ---- mParent = null; mChildren = null; ! mUser = user; } } Index: Message.cs =================================================================== RCS file: /cvsroot/csmaild/csmaild/src/Common/Message.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Message.cs 24 Jul 2003 04:32:13 -0000 1.1 --- Message.cs 25 Jul 2003 03:39:12 -0000 1.2 *************** *** 1,2 **** --- 1,4 ---- + using Common.MailstoreProviders; + using System; *************** *** 6,10 **** /// Represents a message /// </summary> ! public class Message { #region Variables --- 8,12 ---- /// Represents a message /// </summary> ! public class Message : DataItem { #region Variables *************** *** 133,137 **** #endregion ! public Message(int uid, bool seen, bool answered, bool flagged, bool deleted, bool draft, bool recent, int size) { mUniqueId = uid; --- 135,139 ---- #endregion ! public Message(IMailstoreProvider provider, int uid, bool seen, bool answered, bool flagged, bool deleted, bool draft, int size) : base(provider) { mUniqueId = uid; *************** *** 141,145 **** mDeleted = deleted; mDraft = draft; ! mRecent = recent; mSize = size; } --- 143,147 ---- mDeleted = deleted; mDraft = draft; ! mRecent = false; mSize = size; } |