File: Source.custom

package info (click to toggle)
evolution-sharp 0.11.1-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,684 kB
  • ctags: 3,577
  • sloc: ansic: 11,275; sh: 8,735; cs: 1,145; makefile: 222; xml: 46
file content (12 lines) | stat: -rw-r--r-- 475 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
		public bool IsLocal ()
		{
			// webcal is cached locally, so it's ok.
			// contacts:/// is the URI for birthdays and
			// such out of the addressbook, so it's ok too.
			//
			// System.Uri really sucks; we can't use it 
			// because it throws an exception on URIs w/o
			// a hostname (like "contacts:///"), so we
			// have to deal with the strings directly.
			return Uri.StartsWith ("file://") || Uri.StartsWith ("webcal://") || Uri.StartsWith ("contacts://");
		}