Logo Search packages:      
Sourcecode: f-spot version File versions

User.cs

// User.cs
//
// Author:
//   James Willcox <snorp@snorp.net>
//
//  Copyright (C) 2005  James Willcox <snorp@snorp.net>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// 
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
//

using System;
using System.Net;

namespace DPAP {

    public delegate void UserHandler (object o, UserArgs args);

    public class UserArgs : EventArgs {

        private User user;

        public User User {
            get { return user; }
        }
        
        public UserArgs (User user) {
            this.user = user;
        }
    }

    public class User {
        private DateTime loginTime;
        private DateTime lastAction;
        private IPAddress address;
        private string user;

        public DateTime LoginTime {
            get { return loginTime; }
        }

        public DateTime LastActionTime {
            get { return lastAction; }
            internal set { lastAction = value; }
        }

        public IPAddress Address {
            get { return address; }
        }

        public string UserName {
            get { return user; }
        }

        internal User (DateTime loginTime, IPAddress address, string user) {
            this.loginTime = loginTime;
            this.address = address;
            this.user = user;
        }
    }
}

Generated by  Doxygen 1.6.0   Back to index