Fixed help files.
This commit is contained in:
commit
b8f912cc79
1543 changed files with 395123 additions and 0 deletions
109
PluginFramework/PageActivityEventArgs.cs
Normal file
109
PluginFramework/PageActivityEventArgs.cs
Normal file
|
@ -0,0 +1,109 @@
|
|||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace ScrewTurn.Wiki.PluginFramework {
|
||||
|
||||
/// <summary>
|
||||
/// Contains arguments for Page Activity events.
|
||||
/// </summary>
|
||||
public class PageActivityEventArgs : EventArgs {
|
||||
|
||||
private PageInfo page;
|
||||
private string pageOldName;
|
||||
private string author;
|
||||
private PageActivity activity;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="T:PageActivityEventArgs" /> class.
|
||||
/// </summary>
|
||||
/// <param name="page">The page the activity refers to.</param>
|
||||
/// <param name="pageOldName">The old name of the renamed page, or <c>null</c>.</param>
|
||||
/// <param name="author">The author of the activity, if available, <c>null</c> otherwise.</param>
|
||||
/// <param name="activity">The activity.</param>
|
||||
public PageActivityEventArgs(PageInfo page, string pageOldName, string author, PageActivity activity) {
|
||||
this.page = page;
|
||||
this.pageOldName = pageOldName;
|
||||
this.author = author;
|
||||
this.activity = activity;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the page the activity refers to.
|
||||
/// </summary>
|
||||
public PageInfo Page {
|
||||
get { return page; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the old name of the renamed page, or <c>null</c>.
|
||||
/// </summary>
|
||||
public string PageOldName {
|
||||
get { return pageOldName; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the author of the activity.
|
||||
/// </summary>
|
||||
public string Author {
|
||||
get { return author; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the activity.
|
||||
/// </summary>
|
||||
public PageActivity Activity {
|
||||
get { return activity; }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Lists legal Page Activity types.
|
||||
/// </summary>
|
||||
public enum PageActivity {
|
||||
/// <summary>
|
||||
/// A page has been created.
|
||||
/// </summary>
|
||||
PageCreated,
|
||||
/// <summary>
|
||||
/// A page has been modified.
|
||||
/// </summary>
|
||||
PageModified,
|
||||
/// <summary>
|
||||
/// A draft for a page has been saved.
|
||||
/// </summary>
|
||||
PageDraftSaved,
|
||||
/// <summary>
|
||||
/// A page has been renamed.
|
||||
/// </summary>
|
||||
PageRenamed,
|
||||
/// <summary>
|
||||
/// A page has been rolled back.
|
||||
/// </summary>
|
||||
PageRolledBack,
|
||||
/// <summary>
|
||||
/// A page's backups have been deleted.
|
||||
/// </summary>
|
||||
PageBackupsDeleted,
|
||||
/// <summary>
|
||||
/// A page has been deleted.
|
||||
/// </summary>
|
||||
PageDeleted,
|
||||
/// <summary>
|
||||
/// A message has been posted to a page discussion.
|
||||
/// </summary>
|
||||
MessagePosted,
|
||||
/// <summary>
|
||||
/// A message has been modified.
|
||||
/// </summary>
|
||||
MessageModified,
|
||||
/// <summary>
|
||||
/// A message has been deleted from a page discussion.
|
||||
/// </summary>
|
||||
MessageDeleted
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue