~ubuntu-branches/debian/jessie/banshee-community-extensions/jessie

« back to all changes in this revision

Viewing changes to .pc/0001-Use-DBus-instead-of-NDesk.DBus.patch/src/Telepathy/Banshee.Telepathy/NDesk.DBus/UnixTransport.cs

  • Committer: Package Import Robot
  • Author(s): Chow Loong Jin
  • Date: 2011-09-20 18:45:46 UTC
  • mfrom: (1.2.9 upstream) (5.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20110920184546-3ahue2qplydc4t0e
Tags: 2.2.0-1
* [4940fab] Imported Upstream version 2.2.0
  + Notable bug fixes:
    - Karaoke: Fix crash when switching to Now Playing
    - Lyrics: Fix crash when switching to Now Playing

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Copyright 2006 Alp Toker <alp@atoker.com>
2
 
// This software is made available under the MIT License
3
 
// See COPYING for details
4
 
 
5
 
using System;
6
 
using System.IO;
7
 
 
8
 
namespace NDesk.DBus.Transports
9
 
{
10
 
        abstract class UnixTransport : Transport
11
 
        {
12
 
                public override void Open (AddressEntry entry)
13
 
                {
14
 
                        string path;
15
 
                        bool abstr;
16
 
 
17
 
                        if (entry.Properties.TryGetValue ("path", out path))
18
 
                                abstr = false;
19
 
                        else if (entry.Properties.TryGetValue ("abstract", out path))
20
 
                                abstr = true;
21
 
                        else
22
 
                                throw new Exception ("No path specified for UNIX transport");
23
 
 
24
 
                        Open (path, abstr);
25
 
                }
26
 
 
27
 
                public abstract void Open (string path, bool @abstract);
28
 
        }
29
 
}