Universal Bible API 1.0.2011.1274

IBibleModul.cs

Go to the documentation of this file.
00001 using System;
00002 using System.Collections.Generic;
00003 using System.Text;
00004 
00005 namespace UniversalBibleAPI
00006 
00007 {
00012     public class CurrentContentKey
00013     {
00017         public enum TypeOfContentKey
00018         {
00022            Verse,
00026            Caption,
00030            Remark,
00034            Nothing
00035         }
00040         public TypeOfContentKey ContentType { get; set; }
00045         public string Book { get; set; }
00050         public string Chapter { get; set; }
00055         public string Verse { get; set; }
00060         public string ContentText { get; set; }
00061     }
00065     public class ParseEventArgs : EventArgs {
00066         public List<CurrentContentKey> QueryResultList { get; set; }
00067     }
00071     public class ModulConnectedEventArgs : EventArgs {
00076         public string ModulName { get; set; }
00077     }
00078 
00082     public interface IBibleModul
00083     {     
00084         
00088         event EventHandler<ModulConnectedEventArgs> OnConnected;
00093         event EventHandler<ParseEventArgs> OnQueryFinished;
00098         IFilter MyFilter { get; set; }
00100         void Connect(string PathToBibleModul);
00108         bool HasVersRef(string SingleVersRef);
00110         void ParseQuery(string BibleQuery);
00115         void NextVerse();
00120         void PreviousVerse();
00124         void NextChapter();
00128         void PreviousChapter();
00132         void NextBook();
00136         void PreviousBook();
00141         bool IsOnEnd();
00146         bool IsOnStart();
00150         string ModuleName { get; set; }
00154         string ModulePath { get; }
00159         List<CurrentContentKey> GetAllVerses();
00164         void ConvertTo(IBibleModul ModulToConvert);
00165     }
00166 }
 All Classes Namespaces Files Functions Enumerations Properties Events