File: Source.custom

package info (click to toggle)
evolution-sharp 0.17.1-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,892 kB
  • ctags: 875
  • sloc: sh: 8,987; cs: 2,700; ansic: 712; makefile: 183; xml: 28
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://");
		}