Beispiel #1
0
 private static void RegisterImplementations()
 {
     LicenseImpl.Register();
     Proxy.Register();
     LocalImpl.Register();
     LocaleImpl.Register();
     UserPreferences.Register();
     Keychain.Register();
     PlistWriter.Register();
     PlistSerializer.Register();
     PlistDeserializer.Register();
     HostPlistReader.Register();
     TransferPlistReader.Register();
     ProtocolPlistReader.Register();
     TcpReachability.Register();
     GrowlImpl.Register();
     TreePathReference.Register();
     LoginController.Register();
     HostKeyController.Register();
     UserDefaultsDateFormatter.Register();
     if (Preferences.instance().getBoolean("rendezvous.enable"))
     {
         Rendezvous.Register();
     }
     ProtocolFactory.register();
 }
Beispiel #2
0
        public override string kind()
        {
            // Native file type mapping
            String kind = LocalImpl.kind(getExtension());

            if (string.IsNullOrEmpty(kind))
            {
                return(base.kind());
            }
            return(kind);
        }
Beispiel #3
0
        public void AbsolutePaths()
        {
            LocalImpl l = new LocalImpl(@"G:\");
            Assert.AreEqual(@"G:\", l.getAbsolute());
            Assert.AreEqual(string.Empty, l.getName());

            l = new LocalImpl(@"C:\path\relative");
            Assert.AreEqual(@"relative", l.getName());
            Assert.AreEqual(@"C:\path\relative", l.getAbsolute());

            l = new LocalImpl(@"C:\path", "cyberduck.log");
            Assert.AreEqual(@"cyberduck.log", l.getName());
            Assert.AreEqual(@"C:\path\cyberduck.log", l.getAbsolute());

            l = new LocalImpl(@"C:\path", "Sessions");
            Assert.AreEqual(@"Sessions", l.getName());
            Assert.AreEqual(@"C:\path\Sessions", l.getAbsolute());
        }
Beispiel #4
0
        public void AbsolutePaths()
        {
            LocalImpl l = new LocalImpl(@"G:\");

            Assert.AreEqual(@"G:\", l.getAbsolute());
            Assert.AreEqual(string.Empty, l.getName());

            l = new LocalImpl(@"C:\path\relative");
            Assert.AreEqual(@"relative", l.getName());
            Assert.AreEqual(@"C:\path\relative", l.getAbsolute());

            l = new LocalImpl(@"C:\path", "cyberduck.log");
            Assert.AreEqual(@"cyberduck.log", l.getName());
            Assert.AreEqual(@"C:\path\cyberduck.log", l.getAbsolute());

            l = new LocalImpl(@"C:\path", "Sessions");
            Assert.AreEqual(@"Sessions", l.getName());
            Assert.AreEqual(@"C:\path\Sessions", l.getAbsolute());
        }
Beispiel #5
0
 public void Init()
 {
     UserPreferences.Register();
     LocaleImpl.Register();
     LocalImpl.Register();
 }